I’m reading an xaml file using XamlReader() and it has of course elements and attributes such as:
<setter property="Property1" Value="Value1" />
Are there any methods to locate a specific property and its associated value?
Should I parse the string using string functions?
The MSDN docs show using an XmlReader as input to XamlReader
http://msdn.microsoft.com/en-us/library/system.windows.markup.xamlreader.aspx
You could just use the XmlReader to grab attributes.
http://msdn.microsoft.com/en-us/library/cc189056%28VS.95%29.aspx
You would use
XmlNodeType.Attributein theswitchstatement shown in the MSDN example, after first noting the node you’re in in theXmlNodeType.Elementcase.