Exemplo n.º 1
0
 public Menu()
 {            
     InitializeComponent();
     PageAnimation.SetObject(front, back);
     viewModel = new MenuViewModel();
     this.Loaded += (s, e) => { this.DataContext = this.viewModel; };
 }
Exemplo n.º 2
-1
 public ActionButton(MenuViewModel viewModel)
 {
     this.viewModel = viewModel;
     this.viewModel.PropertyChanged += (s, e) =>
     {
         if (this.CanExecuteChanged != null)
         {
             this.CanExecuteChanged(this, new EventArgs());
         }
     };
 }