Skip to content

Instantly share code, notes, and snippets.

@ivanjx
Created November 5, 2020 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanjx/0282fe4bf697d7e600e59ffdc6eeb42b to your computer and use it in GitHub Desktop.
Save ivanjx/0282fe4bf697d7e600e59ffdc6eeb42b to your computer and use it in GitHub Desktop.
<Window x:Class="wpf_test.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:wpf_test"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<StackPanel>
<UniformGrid Columns="3">
<Grid
Background="Gray"
Margin="5"
VerticalAlignment="Stretch">
<Grid
Height="100"
Width="100"
Background="Black"/>
</Grid>
<Grid
Background="Gray"
Margin="5"
VerticalAlignment="Stretch">
<Grid
Height="100"
Width="100"
Background="Black"/>
</Grid>
<Grid
Background="Gray"
Margin="5"
VerticalAlignment="Stretch">
<Grid
Height="100"
Width="100"
Background="Black"/>
</Grid>
</UniformGrid>
<UniformGrid Columns="3">
<Grid
Background="Gray"
Margin="5"
VerticalAlignment="Stretch">
<Grid
Height="50"
Width="100"
Background="Black"/>
</Grid>
<Grid
Background="Gray"
Margin="5"
VerticalAlignment="Stretch">
<Grid
Height="250"
Width="100"
Background="Black"/>
</Grid>
<Grid
Background="Gray"
Margin="5"
VerticalAlignment="Stretch">
<Grid
Height="100"
Width="100"
Background="Black"/>
</Grid>
</UniformGrid>
</StackPanel>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment