Declaring Namespaces and Namespace Association

XML in general is very sensitive to namespaces, and XAML is no different. Several namespaces are critical, including workflow-related namespaces and namespaces associated with .NET itself.

The primary namespace your XAML file must include is http://schemas.microsoft.com/winfx/2006/xaml, which customarily uses the prefix x. In XML, the namespace declaration looks like this:

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Workflow-based XAML files must also include the workflow namespace, http://schemas.microsoft.com/winfx/2006/xaml/workflow. If there is a namespace prefix, by convention it will be wf, but in workflow-based XAML files you typically make the workflow namespace the default namespace ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.