可调整大小的控件在Silverlight中? [英] resizable control in silverlight ?
本文介绍了可调整大小的控件在Silverlight中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请任何人帮助我解决这个问题........
我想在Silverlight中制作绘画软件,我已经完成了画布上所有形状的拖放操作,但是现在我想制作然后重新调整大小.........
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.........
推荐答案
嗨govindaAlwani,
我在这里有点猜测,因为您的问题在背景信息方面有些短,但是请确保将宽度和高度设置为*,并且也不要在任何地方设置宽度和高度.
例如,如果它是一个Grid,则每个控件的外观应类似于以下内容:
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>
您应该在这里看看这篇文章:
WPF图设计器:第1部分 [
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.
这篇关于可调整大小的控件在Silverlight中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文