开发者

Aligning Text Boxes in Silverlight

开发者 https://www.devze.com 2022-12-16 17:07 出处:网络
How to align text boxes in silverlight using C# .In my application two textboxes are getting overlapped . I am 开发者_如何转开发using GridPlace them in a StackPanel.

How to align text boxes in silverlight using C# .In my application two textboxes are getting overlapped . I am 开发者_如何转开发using Grid


Place them in a StackPanel.

<StackPanel>
    <TextBox Width="120">
    <TextBox Width="120">
</StackPanel>

produces two text boxes one above the other.

Another option is use a second grid with two rows or two columns and place a text box in each, this allows you share out the available space of the cell in provided by the outer Grid.

0

精彩评论

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