Пример #1
0
        public MainPage()
        {
            this.InitializeComponent();
            ProcessAutomationViewModel VM = new ProcessAutomationViewModel();

            VM.GoBack        = new DelegateCommand <object>(OnGoBack);
            this.DataContext = VM;
        }
Пример #2
0
        private void OnGoBack(object parameter)
        {
            ProcessAutomationViewModel VM = this.DataContext as ProcessAutomationViewModel;

            VM.GoBack        = null;
            this.DataContext = null;
            Frame.GoBack();
        }
Пример #3
0
        public MainWindow()
        {
            InitializeComponent();
            //DataContext for WorkFlowEditor
            ProcessAutomationViewModel VM = new ProcessAutomationViewModel();

            VM.GoBack        = new DiagramFrontPageUtility.DelegateCommand <object>(OnGoBack);
            this.DataContext = VM;
        }