Link to home
Start Free TrialLog in
Avatar of huangs3
huangs3Flag for Canada

asked on

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

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
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of huangs3

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial