How to refer to a Namespace in WPF XAML?

Use the format:

xmlns:prefix=clr-namespace:This.Is.Your.Namespace;assembly=This.Is.Your.Assembly”

The part “;assembly=This.Is.Your.Assembly” should be left blank if the namespace and the currently-edited XAML file are in the same assembly (often in the same project of your solution, unless your assembly is a dll composed of >1 projects).

Done.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: