resource-dictionary

Access ResourceDictionary items programmatically

I have a Silverlight controls assembly, called "MySilverlightControls". Several folders down into that assembly i have a class which extends a grid column from a third party vendor, let's call it "MyImageColumn.cs". I have also created a resource dictionary called Generic.xaml, this is situated in the Themes folder of the assembly. In t...

Add collection or array to wpf resource dictionary

I've search high and low and can't find an answer to this. I have two questions How do you create an array or collection in XAML. I've got an array I want to stick in there and bind to a combo box. My first idea was to put an ItemsControl in a resource dictionary, but the ItemsSource of a combo box expects IEnumerable so that didn't...