O'Reilly logo

Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# by K. Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Conditions

The While activity is one activity that uses a condition. The While activity will repeatedly execute its child activity until its Condition property returns false. The Properties window for the While activity allows us to set this Condition property to a Code Condition or a Declarative Rule Condition. In the screenshot below, we've told the While activity to use a code condition, and that the code condition is implemented in a method named CheckBugIndex.

Working with Conditions

Code Conditions

A code condition is an event handler in our code-beside file. A code condition returns a boolean value via a ConditionalEventArgs parameter. Because a code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required