Hello ..,
I am Trying to create a game board using a grid ( 25X25 ) in wpf , and I also Created a control to be host within a cell in the grid , but the control size is bigger then the cell ,
how can I Autozise the control to fit the cell size ,
and after that how to centerlized the control in th cell
thanks..
Auto Size of Control inside a Grid
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

sivagnanam8 reputationPosted Aug 31, 2009, 4:35 AM EDT
<Grid x:Name="GridUC">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
Grid.RowDefinitions>
<Viewbox Grid.Row="0" Stretch="Fill">
Viewbox>
Grid>