-
Notifications
You must be signed in to change notification settings - Fork 23
/
MainPage.xaml
24 lines (18 loc) · 976 Bytes
/
MainPage.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
<Page
x:Class="Game.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Game"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:canvas="using:Microsoft.Graphics.Canvas.UI.Xaml"
mc:Ignorable="d"
Unloaded="Page_Unloaded" >
<Grid Width="1024" Height="1024 " >
<Grid.Background>
<ImageBrush ImageSource="/Assets/gamegrid.png"/>
</Grid.Background>
<canvas:CanvasControl x:Name="canvas" Draw="canvasControl_Draw" IsTabStop="True" KeyDown="canvas_KeyDown" CreateResources="canvas_CreateResources" ClearColor="#00000000" Width="1024" Height="1024" HorizontalAlignment="Center" VerticalAlignment="Center" >
</canvas:CanvasControl>
</Grid>
</Page>