Click here to Skip to main content
15,747,766 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.........

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:
        <RowDefinition Height="*" />
        <RowDefinition Height="*" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
Share this answer
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.
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900