コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

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

            this.DataContext = p;
        }
コード例 #2
0
 public DecrementAgeCommand(PersonCommandViewModel viewmodel)
 {
     vm = viewmodel;
 }