Skip to Content
Introducing .NET 4.0: with Visual Studio 2010
book

Introducing .NET 4.0: with Visual Studio 2010

by Alex Mackey
February 2010
Beginner content levelBeginner
400 pages
11h 13m
English
Apress
Content preview from Introducing .NET 4.0: with Visual Studio 2010

6.6. Creating Your Own Activities

Microsoft supplies many activities out of the box, but you will want to and should create your own activities. Activities can be created in three main ways:

  • As a composition of other existing activities

  • In code

  • In pure XAML

6.6.1. Creating an Activity Composed of Other Activities

Let's create a simple activity to simulate writing a customer's ticket booking to a database:

  1. Right-click the project and add a new activity (from the Workflow section) called SaveBooking.xaml.

  2. Open SaveBooking.xaml in design view.

  3. Create an argument for the SaveBooking activity (String, In) called BookingReference.

  4. Drag a Sequence activity onto the design surface.

  5. Drag a WriteLine activity onto this activity and change its display name ...

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

ASP.NET 3.5 For Dummies®

ASP.NET 3.5 For Dummies®

Ken Cox
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9781430224556Purchase book