40 lines
1.8 KiB
XML
40 lines
1.8 KiB
XML
<Window x:Class="Life.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:Life"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="450" Width="800" d:DataContext="{d:DesignInstance local:MainWindow}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*" MinWidth="400"/>
|
|
<ColumnDefinition Width="3"/>
|
|
<ColumnDefinition Width="1*" MinWidth="250"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
|
<local:AutomatonField Field="{Binding Field}" Size="{Binding Size}" Separation="3"/>
|
|
</ScrollViewer>
|
|
|
|
<GridSplitter Grid.Column="1" Width="3" ResizeDirection="Columns" ResizeBehavior="PreviousAndNext"/>
|
|
<Grid Margin="8" Grid.Column="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="3*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<TextBlock Text="{Binding Field.Size.Width}"/>
|
|
<TextBlock Text=" x "/>
|
|
<TextBlock Text="{Binding Field.Size.Height}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Vertical" Grid.Row="1" VerticalAlignment="Bottom">
|
|
<Button VerticalAlignment="Stretch" Margin="0 0 0 8">Step</Button>
|
|
<Button VerticalAlignment="Stretch" Click="Step_OnClick">Step</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|