Solved

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

Posted on 2011-02-10
3
505 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

756 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