none
Custom Xaml Namespace Mapping (SL2 B2)

    Question

  • 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

    Monday, August 04, 2008 7:03 PM

Answers

  • 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"

     

    Monday, August 04, 2008 7:55 PM

All replies

  • 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"

     

    Monday, August 04, 2008 7:55 PM
  • Is this feature on the map for RTM or is it looking more like v.next?

    Monday, August 04, 2008 8:07 PM
  • Post v2 - v.next type of thing.

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

     

    Tuesday, August 05, 2008 12:40 PM