tags:

views:

16

answers:

1

Hi Can any one tell me how to allign text boxes in silverlight using C# .In my application two textboxes are getting overlapped . I am using Grid

A: 

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.

AnthonyWJones