In this task, we will give our workflow designer the ability to save workflow into an XAML file.
Before we begin this task, we must complete the previous task: Implementing New Workflow and Load Workflow events.
Open the workflow designer project:
Open the workflow designer project we created in the previous task.
Open the designer's backend CS code file and add code for the following three methods:
Save
method,MenuItem_Click_Save
method, andMenuItem_Click_SaveAs
method:private void Save() { if (workflowFilePathName == "temp.xaml") { Microsoft.Win32.SaveFileDialog saveFileDialog =new Microsoft.Win32.SaveFileDialog(); if (saveFileDialog.ShowDialog(this).Value) { workflowFilePathName = saveFileDialog.FileName; wd.Save(workflowFilePathName); MessageBox.Show("Save Ok"); this.Title = "Workflow Designer - " + workflowFilePathName; } else { return; } } else { wd.Save(workflowFilePathName...