开发者

Resizing of a Line in Silverlight Application

I have included a Line control in a Silverlight application as followss.

<Canvas x:Name="Adorner">
 <Border BorderBrush="Black" BorderThickness="2">
   <StackPanel Orientation="Vertical">
       <Line Stroke="Black"  StrokeThickness="0" Height="80" HorizontalAlignment="Stretch">
       </Line>
   </StackPanel>
 </Border>
</Canvas>

This line appears as expected, but does not allow me to resize it. Can anyone tell me how can enable resize property of the Line?

Than开发者_运维百科ks&Regards Padma


Personally, I find that Line and Rectangle are both a pain in the butt to use, and I generally use a Border control instead:

A Border contol with a width of one is a great line that is more consistent in syntax and databinding capabilities with other "typical" controls like StackPanel and Grid...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜