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 117365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:19:29+00:00 2026-05-11T03:19:29+00:00

In Silverlight/XAML you have namespaces such as: xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml and so elements have namespaced attributes

  • 0

In Silverlight/XAML you have namespaces such as:

xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'  

and so elements have namespaced attributes like this:

<TextBlock x:Name='theMessage' Margin='10'>Testing...</TextBlock> 

When would this be a benefit for me? Would I at some point create another namespace, e.g.:

xmlns:edward='http://www.tanguay.info/web'  

so I can put my own name attributes tags, e.g.:

<TextBlock x:Name='theMessage' edward:Name='secondName' Margin='10'>Testing...</TextBlock> 

And then somehow process both of the name tags, etc.?

  • 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. 2026-05-11T03:19:29+00:00Added an answer on May 11, 2026 at 3:19 am

    XAML is a XML based markup language, thus you can take advantage of namespaces. The primary goal for this approach is to organize your work in smaller units and mantain disambiguity between them. It’s the same principle that operates with normal namespaces in .NET (or other programming languages). Tipically in XAML you use

    xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' 

    namespace to address the base controls (remember that it’s just a string, not an address pointing actually to a website). Other than that, it’s common to find reference to other namespaces used to connect to other assemblies (third party or you own) containing business logic or other XAML objects.

    xmlns:demo='clr-namespace:MyNamespace;assembly=MyNamespace.Lib' 

    and in your XAML have something like this

    <Grid>       <demo:MyCustomControl /> </Grid> 

    Where MyCustomControl is control defined in MyNamespace.Lib assembly.

    EDIT: just remembered, if you want to keep a XAML-like syntax in your namespace references, you can create alias for them in the form of uri. Check out this example.

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

Sidebar

Related Questions

I have a custom base user control in silverlight. <UserControl x:Class=Problemo.MyBaseControl xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:d=http://schemas.microsoft.com/expression/blend/2008
I have a xaml navigation page with 5 listboxes (Silverlight 3). Four of the
I have a requirement to take client side XAML (from Silverlight) and create a
I have a Page in Silverlight which is Navigated from the MainPage.xaml, called OpenPage.xaml,
I have a question similar to this - Does Silverlight xaml support Byte Data
I am converting some Silverlight XAML into WPF. I currently have a user control
I have a very simple silverlight xaml page displays textbox and a button. When
I have the following Xaml (Silverlight, but it shouldn't matter): <ListBox x:Name=Results> ... </ListBox>
In Silverlight/WPF xaml at the top of the code you have your namespace/import type
I have a Silverlight XAML usercontrol that I want to use to show that

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.