xname

What is the easiest way to generate a Valid x:Name?

I am generating some Xaml based on some other source of input. In some cases I am generating x:Name values but they have invalid characters. I found this article on MSDN: XamlName Grammar Which describes the grammar of a x:Name tag but doesn't tell me how to actually apply this. Clearly there is some code to validate this name at runti...

XName x = "string" ??

I forgot casting mechanism when i encounter it :) . So can u make me remember it again ? Because it looks not acceptable for me at the moment. ...

How can I get the x:Name of an object from code?

Given a reference to an object defined in XAML, is it possible to determine what (if any) x:Name the object has, or can I only do this by accessing the FrameworkElement.Name property (if the object is a FrameworkElement)? ...

XDocument.Descendants(itemName) - Problems finding qualified name

Hello, this is my first post here - usually i'll find the answer somewhere in this board - but not today :-( okay: I,m trying to read a XML-RSS-Feed from a website. Therefore i use a async download and create a XDocument with the XDocument.Parse() Method. The Document intends to be very simple, like this: <root> <someAttribute></S...