Click here to Skip to main content
Sign Up to vote bad
good
Please can anyone help me for this question ........
i want to make paint software in silverlight i have done drag and drop of all shapes in canvas but now i want to make then re-sizable.........
Posted 13 Sep '12 - 23:31


2 solutions

Hi govindaAlwani,
 
I am guessing a bit here because your question is a little short in backgound information but, ensure you are setting your widths and heights as * and also that you are not setting widths and heights anywhere.
 
For examlple, if it were a Grid it would look something like the following for each control:
<Grid.RowDefinitions>
        <RowDefinition Height="*" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
  Permalink  
You should take a look at this article here:
WPF Diagram Designer: Part 1[^]
 
Its in WPF, but you should be able to use them in Silverlight also.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 243
1 Rohan Leuva 220
2 Sergey Alexandrovich Kryukov 208
3 Abhinav S 168
4 Mahesh Bailwal 165
0 Sergey Alexandrovich Kryukov 8,494
1 OriginalGriff 6,799
2 CPallini 3,603
3 Rohan Leuva 2,923
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 23 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid