xname

XDocument.Descendants(itemName) - Problems finding qualified name

做~自己de王妃 提交于 2019-12-23 20:00:26
问题 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></SomeAttribute> <item>...</item> <item>...</item> </root> Now I want to read out all the items. Therefore I tried: foreach (XElement NewsEntry in xDocument.Descendants("item")) but this doesn't work. So I found a post in this board to use the qualified name, because there are some

Can I get access from code behind (of a ResourceDictionary) to a named control?

扶醉桌前 提交于 2019-12-13 07:40:26
问题 Is it possible to get access from a code behind (of a ResourceDictionary) to a named control? E.g. for me it is necessary to create lots of folder picking dialogs. A dialog may contain several rows for each folder that has to be chosen. Each row consists of: Label (Name), TextBox (Chosen Path) and a Button (opens FileBrowserDialog). So now I want to access the TextBox when the FileBrowserDialog is finished. But I can not access the "SelectedFolderTextBox" from CodeBehind. Is there a better