iterating resourcedictionary xaml file

Posted by Sdry on Stack Overflow See other posts from Stack Overflow or by Sdry
Published on 2010-04-26T21:40:20Z Indexed on 2010/04/26 21:43 UTC
Read the original article Hit count: 484

Filed under:
|

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 ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about xaml