I'm very new to Silverlight so I apologise if this question is obvious but I want to create something similar to a HTML table that can have any number of rows from 1 to x.
I need the table to grow with the number of rows added to it. Additionally, I would like to be able to set the width and height of the table as a whole and have all the text in each row to dynamically resize appropriately.
What would the XAML for something like this look like?
Cheers, Chris.
EDIT:
Thanks for the responses, it appears that what I want is a mixture of all the suggestions made to archive this:
<Grid x:Name="ExampleGrid" Height="150" Width="300" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Viewbox Stretch="Fill" Grid.Row="0">
<!-- Two column header -->
<StackPanel Orientation="Horizontal">
<TextBlock Text="Text One" Height="Auto" />
<TextBlock Text="Text One" Height="Auto" />
</StackPanel>
</Viewbox>
<Viewbox Stretch="Fill" Grid.Row="1">
<TextBlock Text="Text Two" Height="Auto" />
</Viewbox>
<Viewbox Stretch="Fill" Grid.Row="2">
<TextBlock Text="Text Three" Height="Auto"/>
</Viewbox>