Skip to main content
Home Forums Silverlight Programming Programming with .NET - General x:Uid
4 replies. Latest Post by jamesnw on July 5, 2009.
(0)
jamesnw
Member
17 points
31 Posts
07-02-2009 11:52 PM |
What is the point of x:Uid in Silverlight...or is there one? If so, how would I even go about reading this from controls?
elmore.adam
482 points
67 Posts
07-04-2009 6:14 PM |
It is used as a unique identifier for localization. Read more here.
07-04-2009 10:45 PM |
I already read that, doesn't mean anything to me. What does "localization" mean in the context of Silverlight? Knowing what it is doesn't explain the reason why it's there, and why, although I can set it, there's no way, in code, to utilize it (at least, not in Silverlight).
07-04-2009 11:01 PM |
Localization means the same thing in Silverlight as it does in any other context.. making your solution work across language and cultural barriers. The x:Uid attribute is used during the localization process but as a developer you would simply use it to provide a page-level, unique identifier for a particular element (or property, as explained in the above documentation). If this doesn't mean anything to you, don't concern yourself with it.
07-05-2009 12:02 AM |
I think getting to understand it will allow me to decide whether or not to be concerned with it. What exactly is this "localization process" you are referring to? I still don't see the usefulness of it. Perhaps a real-world example?