-
Notifications
You must be signed in to change notification settings - Fork 0
/
BitmapWindow.xaml
24 lines (24 loc) · 1.41 KB
/
BitmapWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Window x:Class="GameOfLife.BitmapWindow"
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:GameOfLife"
mc:Ignorable="d"
Title="BitmapWindow" Height="371.642" Width="534.627">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="459*"/>
<ColumnDefinition Width="142*"/>
</Grid.ColumnDefinitions>
<Image x:Name="DisplayImage" RenderOptions.BitmapScalingMode="NearestNeighbor"
RenderOptions.EdgeMode="Aliased" MouseDown="DisplayImage_OnMouseDown" MouseMove="DisplayImage_OnMouseMove"/>
<StackPanel Grid.Column="1">
<Button Width ="100" Height="40" Margin="5" Content="Reinit" Click="ReinitButton_Click"></Button>
<Button Width ="100" Height="40" Margin="5" Content="NextRound" Click="NextRoundButton_Click"></Button>
<Button Width ="100" Height="40" Margin="5" Content="Auto" Click="AutoButton_Click"></Button>
<Label Content="Generations" Margin="5" HorizontalAlignment="Center"/>
<TextBox IsReadOnly="True" x:Name="GenerationsTextBox" Width="100" Height="40" Margin="5"/>
</StackPanel>
</Grid>
</Window>