Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Custom Xaml Namespace Mapping (SL2 B2)
3 replies. Latest Post by Mark Rideout on August 5, 2008.
(0)
dragonshed
Member
0 points
2 Posts
08-04-2008 7:03 PM |
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
Mark Rid...
Contributor
2357 points
273 Posts
08-04-2008 7:55 PM |
Not in Silverlight 2. You'll still need to do the namespace xmlns that identifies the namespace and assembly.
-markSilverlight Program ManagerMicrosoftThis post is provided "as-is"
08-04-2008 8:07 PM |
Is this feature on the map for RTM or is it looking more like v.next?
08-05-2008 12:40 PM |
Post v2 - v.next type of thing.