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

            DataContext          = _vm = new HanoiViewModel(3);
            _vm.PropertyChanged += _vm_PropertyChanged;
            Init();
        }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();

            DataContext          = _vm = new HanoiViewModel(3);
            _animation           = (Storyboard)FindResource("moveStoryboard");
            _vm.PropertyChanged += _vm_PropertyChanged;
            Init();
        }