If I have a UserControl: Foo.Bar.MyClass, I know I can reference it in XAML by declaring:
xmlns:foobar="clr-namespace:Foo.Bar"
and then using the reference
<foobar:MyClass />
But if I declare only the Foo namespace:
xmlns:foo="clr-namespace:Foo"
is there a way for me to reference MyClass as Foo:Bar.MyClass in my XAML?
As per my knowledge this is not possible.
You must add assembly reference for the type is being used in XAML.
Similarly it is not possible with C#. You are not able to access type which assembly reference is not included in using list.