private void Application_Startup(object sender, StartupEventArgs e) { WheelViewModel = new WheelVM(SimulatorModel); DashboardViewModel = new DashboardVM(SimulatorModel); GameMapViewModel = new GameMapVM(SimulatorModel); ExceptionViewModel = new ExceptionVM(SimulatorModel); }
private void UIElement_OnRightTapped(object sender, RightTappedRoutedEventArgs e) { GameMapVM theNode = ((Button)sender).CommandParameter as GameMapVM; theNode.IsMarked = true; }