Solved

SilverLight 4: what does the "x:" stand for in an XAML file?

Posted on 2011-02-10
3
500 Views
Last Modified: 2012-05-11
Hi Experts:

    I am developing SilverLight 4 applications with Visual Studio 2010.
    In the XAML tags there are some attributes start with "x:" (see the attached screenshoot). I understand that the word like "xmlns:" has the meaning of "XML Name Space" and it is used to define name spaces. Then what does "x:" mean? Any information/reference about how "x:" works will be appriciated.
    Thank you.
XamlSample.png
0
Comment
Question by:huangs3
  • 2
3 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34866408
It is a namespace prefix. It states that that specific element belongs to a particular namespace. In your example the "x" prefix corresponds to the:
      http://schemas.microsoft.com/winfx/2006/xaml

Open in new window

namespace.
0
 

Author Comment

by:huangs3
ID: 34876100
Hi carl tawn:

    Then how does the elements in this particular namespace hook up with the elements in the XAML? For example, for <Application.Resources> element, only x:Uid is available, but for <Grid> element, x:FieldModifier, x:Name and x:Uid are all available?
    Thankyou.
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34876125
Maybe this will help explain the relationship:

    http://msdn.microsoft.com/en-us/library/ms747086.aspx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 62
Exception in Log4Net 1 20
MS SQL Database Generating XML using query 21 20
Birthdays 3 21
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now