Etienne_123 wrote:
Some controls are within a Grid. I want these controls to stay centered within the grid when maximizing and resizing the window
What is the parent of the grid with the controls? The parent may
be affecting the layout.
Here's an example of a grid with controls that stays centered in a window:
<Grid HorizontalAlignment="Center" VerticalAlignment="Center" ><br /> <Grid.RowDefinitions><br /> <RowDefinition Height="*" /><br /> <RowDefinition Height="*" /><br /> </Grid.RowDefinitions><br /> <Grid.ColumnDefinitions><br /> <ColumnDefinition Width="*" /><br /> <ColumnDefinition Width="*" /><br /> </Grid.ColumnDefinitions><br /> <Button Content="button1" Grid.Column="0" Grid.Row="0" /><br /> <Button Content="button2" Grid.Column="1" Grid.Row="1" /><br /> </Grid>