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

Dependency Properties

The ultimate goal of a dependency property is to manage state. The dependency property is not unique to Windows Workflow; it is also present in WF's XAML sibling—Windows Presentation Foundation. A dependency property enables a handful of critical features in WF:

  • Activity property binding
  • Attached properties
  • Meta-properties

Every class that uses a dependency property will ultimately derive from the abstract DependencyObject class. Shown in the screenshot overleaf, the DependencyObject provides methods to manipulate dependency properties, like GetValue and SetValue. Also shown in the following figure is the DependencyProperty class.

This class represents the metadata that describes a dependency property, like the Name and OwnerType ...

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