Skip to Content
Microsoft Windows Workflow Foundation 4.0 Cookbook
book

Microsoft Windows Workflow Foundation 4.0 Cookbook

by Andrew Zhu
September 2010
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 16m
English
Packt Publishing
Content preview from Microsoft Windows Workflow Foundation 4.0 Cookbook

Implementing Save and Save As events

In this task, we will give our workflow designer the ability to save workflow into an XAML file.

Getting ready

Before we begin this task, we must complete the previous task: Implementing New Workflow and Load Workflow events.

How to do it...

  1. Open the workflow designer project:

    Open the workflow designer project we created in the previous task.

  2. Add code to the designer:

    Open the designer's backend CS code file and add code for the following three methods: Save method, MenuItem_Click_Save method, and MenuItem_Click_SaveAs method:

    private void Save() { if (workflowFilePathName == "temp.xaml") { Microsoft.Win32.SaveFileDialog saveFileDialog =new Microsoft.Win32.SaveFileDialog(); if (saveFileDialog.ShowDialog(this).Value) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essential Windows Workflow Foundation

Essential Windows Workflow Foundation

Dharma Shukla, Bob Schmidt

Publisher Resources

ISBN: 9781849680783Other