Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            var p = new PersonCommandViewModel()
            {
                FirstName = "yama",
                LastName  = "to",
                Age       = 100,
            };

            this.DataContext = p;
        }
Esempio n. 2
0
 public DecrementAgeCommand(PersonCommandViewModel viewmodel)
 {
     vm = viewmodel;
 }