protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); // get the instance of the Xbox controller controller1 = new Controller(0); controller2 = new Controller(1); model = new ControllersModel { Controller1 = new StateModel(), Controller2 = new StateModel() }; DataContext = model; // start simple game loop here, 33ms = 30FPS while (true) { Loop(); await Task.Delay(33); } }