示例#1
0
  public LoThuocList()
 {
     InitializeComponent();
     PageAnimation.SetObject(front, back);
     viewModel = new LoThuocViewModel();
     this.Loaded += (s, e) => { this.DataContext = this.viewModel; };
 }
示例#2
0
 public ActionButton(LoThuocViewModel viewModel)
 {
     this.viewModel = viewModel;
     this.viewModel.PropertyChanged += (s, e) =>
     {
         if (this.CanExecuteChanged != null)
         {
             this.CanExecuteChanged(this, new EventArgs());
         }
     };
 }
示例#3
0
 public ActionButton(LoThuocViewModel viewModel)
 {
     this.viewModel = viewModel;
     this.viewModel.PropertyChanged += (s, e) =>
     {
         if (this.CanExecuteChanged != null)
         {
             this.CanExecuteChanged(this, new EventArgs());
         }
     };
 }