private void lockToggle(object sender, System.Windows.RoutedEventArgs e) { bool current = MainPageViewModel.getInstance().CanToggle; MainPageViewModel.getInstance().CanToggle = !current; }
public MainPage() { this.DataContext = MainPageViewModel.getInstance(); InitializeComponent(); }