示例#1
0
        private void lockToggle(object sender, System.Windows.RoutedEventArgs e)
        {
            bool current = MainPageViewModel.getInstance().CanToggle;

            MainPageViewModel.getInstance().CanToggle = !current;
        }
示例#2
0
 public MainPage()
 {
     this.DataContext = MainPageViewModel.getInstance();
     InitializeComponent();
 }