Does the Xaml Parser in Beta2 support custom namespace mappings? For example, an assembly containing only custom controls and supplying the following attribute in AssemblyInfo.cs: [assembly: XmlnsDefinition("http://silverlight.net/awesomecontrols", Silverlight.Windows.Controls")]
Assembly usage works properly when I use these controls in Xaml, xmlns:myControls="clr-namespace:Silverlight.Windows.Controls;assembly=AwesomeControls", but when I try xmlns:myControls="http://silverlight.net/awesomecontrols", it will throw a XamlParseException
with Unknown Namespace.
-ds
Xaml Parser Namespace
[deadly sharp lines, waves of sine, intersecting shapes with tweens and keysplines]
dragonshed
0 Points
2 Posts
Custom Xaml Namespace Mapping (SL2 B2)
Aug 04, 2008 11:03 PM | LINK
Does the Xaml Parser in Beta2 support custom namespace mappings? For example, an assembly containing only custom controls and supplying the following attribute in AssemblyInfo.cs: [assembly: XmlnsDefinition("http://silverlight.net/awesomecontrols", Silverlight.Windows.Controls")]
Assembly usage works properly when I use these controls in Xaml, xmlns:myControls="clr-namespace:Silverlight.Windows.Controls;assembly=AwesomeControls", but when I try xmlns:myControls="http://silverlight.net/awesomecontrols", it will throw a XamlParseException with Unknown Namespace.
-ds
Xaml Parser Namespace
Mark Rideout
Contributor
2736 Points
307 Posts
Microsoft
Re: Custom Xaml Namespace Mapping (SL2 B2)
Aug 04, 2008 11:55 PM | LINK
Not in Silverlight 2. You'll still need to do the namespace xmlns that identifies the namespace and assembly.
-mark
Silverlight Program Manager
Microsoft
This post is provided "as-is"
dragonshed
0 Points
2 Posts
Re: Re: Custom Xaml Namespace Mapping (SL2 B2)
Aug 05, 2008 12:07 AM | LINK
Is this feature on the map for RTM or is it looking more like v.next?
Mark Rideout
Contributor
2736 Points
307 Posts
Microsoft
Re: Re: Custom Xaml Namespace Mapping (SL2 B2)
Aug 05, 2008 04:40 PM | LINK
Post v2 - v.next type of thing.
-mark
Silverlight Program Manager
Microsoft
This post is provided "as-is"