// Constructor public MainPage() { InitializeComponent(); _gameGrid = new GameGrid(); ContentGrid.Children.Add(_gameGrid); this.SizeChanged += OnSizeChanged; this.ManipulationDelta += OnManipulationDelta; }
public MainPage() { this.InitializeComponent(); _gameGrid = new GameGrid(); ContentGrid.Children.Add(_gameGrid); this.SizeChanged += MainPage_SizeChanged; Window.Current.CoreWindow.KeyDown += CoreWindowOnKeyDown; this.ManipulationMode = ManipulationModes.All; this.ManipulationStarted += OnManipulationStarted; this.ManipulationDelta += OnManipulationDelta; }