Пример #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            _gameGrid = new GameGrid();

            ContentGrid.Children.Add(_gameGrid);

            this.SizeChanged += OnSizeChanged;

            this.ManipulationDelta += OnManipulationDelta;
        }
Пример #2
0
        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;
        }
Пример #3
0
        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;
        }