private void OnGoBack(object parameter) { ProcessAutomationViewModel VM = this.DataContext as ProcessAutomationViewModel; VM.GoBack = null; this.DataContext = null; }
public WorkFlowEditorDemo() { InitializeComponent(); this.Template = this.Resources["ChromelessWindowTemplate"] as ControlTemplate; //DataContext for syncfusion.workfloweditor.wpf ProcessAutomationViewModel VM = new ProcessAutomationViewModel(); VM.GoBack = new DelegateCommand <object>(OnGoBack); this.DataContext = VM; }