iterating resourcedictionary xaml file
- by Sdry
I am trying to display an amount of colorpicker controls depending on an amount of colors in a xamnl resourcedictionary file.
For some reason I can't figure out the right way to do this. When loading it in through a XAMLReader to a ResourcesDictionary Object, I m not sure what is the best way to iterate over it.
I had first tried to handle it as xml, using XDocument.Elements() which gave an empty IEnumerable when trying to get al the elements.
What is the best way to do this ?