-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
19 lines (19 loc) · 1.07 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Window x:Class="Snakes.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Snake Game Editor" Height="400" Width="500" KeyDown="Window_KeyDown" Loaded="Window_Loaded" MouseDown="Window_MouseDown" ResizeMode="NoResize">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Canvas Name="mycanvas" Background="Pink"></Canvas>
<Canvas Grid.Column="1">
<TextBlock Name="txtbScore" Canvas.Left="20" Canvas.Top="50">0</TextBlock>
<Button Content="Pause" Canvas.Left="14" Canvas.Top="251" Width="75" Click="pause"/>
<Button Content="Resume" Canvas.Left="14" Canvas.Top="276" Width="75" Click="resume"/>
<Button Content="Edit" Canvas.Left="14" Canvas.Top="301" Width="75" Click="edit"/>
</Canvas>
<Canvas Name="mycanvas2" Background="Transparent"></Canvas>
</Grid>
</Window>