Skip to main content

Microsoft Silverlight

Answered Question Custom Xaml Namespace Mapping (SL2 B2)RSS Feed

(0)

dragonshed
dragonshed

Member

Member

0 points

2 Posts

Custom Xaml Namespace Mapping (SL2 B2)

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

[deadly sharp lines, waves of sine, intersecting shapes with tweens and keysplines]

Mark Rideout
Mark Rid...

Contributor

Contributor

2357 points

273 Posts

MicrosoftModerator
Answered Question

Re: Custom Xaml Namespace Mapping (SL2 B2)

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
dragonshed

Member

Member

0 points

2 Posts

Re: Re: Custom Xaml Namespace Mapping (SL2 B2)

Is this feature on the map for RTM or is it looking more like v.next?

[deadly sharp lines, waves of sine, intersecting shapes with tweens and keysplines]

Mark Rideout
Mark Rid...

Contributor

Contributor

2357 points

273 Posts

MicrosoftModerator

Re: Re: Custom Xaml Namespace Mapping (SL2 B2)

Post v2 - v.next type of thing.

-mark
Silverlight Program Manager
Microsoft
This post is provided "as-is"

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities