Using a CLR-namespace of another assembly in XAML

Situation

You want to use a CLR namespace of another assembly in your XAML.

Problem

A simple

xmlns:custom="clr-namespace:MyOtherAssembly.MyDesiredNamespace"

won’t do the trick.

Solution

Identify the assembly within the namespace string.

Example

xmlns:custom="clr-namespace:MyDesiredNamespace;assembly=MyOtherAssembly"

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.