Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4080388
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:55:28+00:00 2026-05-20T17:55:28+00:00

In Silverlight/WPF xaml at the top of the code you have your namespace/import type

  • 0

In Silverlight/WPF xaml at the top of the code you have your namespace/import type declarations. I can easily understand how these declarations can point to an assembly so that the types etc can be loaded from it. What I don’t understand (and what I haven’t really thought about up to now) is how these namespaces work when they point to a url, e.g.

http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit

Looking at this URL gives me an error so doesn’t tell me anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:55:29+00:00Added an answer on May 20, 2026 at 5:55 pm

    There’s an attribute you can use in the code of your referenced assembly that maps a Uri to your code namespaces:

    [XmlnsDefinitionAttribute("http://yournamespace/", "Your.Assembly.Namespace")]
    

    You can include multiple of these attributes, typically in your AssemblyInfo.cs, allowing multiple code namespaces to be referenced by a single Uri namespace in Xaml.

    This makes your namespace declarations more compact (since you can omit the assembly name). It also allows you some flexibility in reorganizing namespaces in the referenced assembly without breaking your markup.

    EDIT: for example, if you point Reflector at the PresentationCore assembly, you can see attributes such as this at the assembly level:

    [assembly: 
        XmlnsDefinition( "http://schemas.microsoft.com/netfx/2007/xaml/presentation"
                       , "System.Windows.Ink") ]
    

    This is how the Uri import gets mapped to code namespaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As titled, how can I do that? I have been reading some Silverlight/WPF animation
I have the following XAML, which works fine in WPF, but not in Silverlight
I am converting some Silverlight XAML into WPF. I currently have a user control
I have following code in WPF XAML and want it to be converted to
Hi I want to access the CultureTypes in Windows Phone. In Silverlight/WPF i can
I am an experienced WinForms/WPF/Silverlight developer and have an interview for a product that
I have a Xaml file which is used in a project which can be
As far as I know, XAML is only used in WPF and Silverlight ,
I have the code below under Themes\Generic.xaml Now I need to get cPresenter in
I've been spending quite alot of time recently trying to learn XAML/C#/WPF/Silverlight, trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.