public Wizard()
        {
            InitializeComponent();

            navigationTree = new PageNavigationTreeEntry(root);

            Back    = new DelegateCommand(e => GoBack(), q => CanGoBack);
            Forward = new DelegateCommand(e => GoForward(), q => CanGoForward);
            Finish  = new DelegateCommand(e => AcceptDialog(), q => CanFinish);
            Cancel  = new DelegateCommand(e => CancelDialog(), q => true);

            // Register to root page that we are interested in changes.
            root.PropertyChanged += PagesPropertyChangedHandler;

            DataContext = this;
        }
Esempio n. 2
0
        public Wizard()
        {
            InitializeComponent();

            navigationTree = new PageNavigationTreeEntry(root);

            Back = new DelegateCommand(e => GoBack(), q => CanGoBack);
            Forward = new DelegateCommand(e => GoForward(), q => CanGoForward);
            Finish = new DelegateCommand(e => AcceptDialog(), q => CanFinish);
            Cancel = new DelegateCommand(e => CancelDialog(), q => true);

            // Register to root page that we are interested in changes.
            root.PropertyChanged += PagesPropertyChangedHandler;

            DataContext = this;
        }