I'm creating several static resources that I want to add to an ObjectDataProvider, but I can't figure out the syntax.
<Window.Resources>
<SolidColorBrush x:Key="SolidFillBrush" Color="Black" Opacity="1.0" />
<SolidColorBrush x:Key="HalfOpaqueBrush" Color="Black" Opacity="0.5" />
<SolidColorBrush x:Key="QuarterOpaqueBrush" Color="Black" Opacity="0.25" />
<SolidColorBrush x:Key="TransparentBrush" Color="Black" Opacity="0" />
<ObjectDataProvider x:Key="AllFillStyles" ObjectType="{x:Type Brush}" MethodName="???">
<!-- add the static resources here, but how? -->
</ObjectDataProvider>
</Window.Resources>
Any suggestions?
Edit: I was trying to create a ComboBox containing the above Brushes, so the user could select which brush to use as the fill style for a grid (kind of like in Excel, where you can choose the fill style and color.) I needed to set the ItemsSource, and found where someone had used the ObjectDataProvider. I figured out that you could create an Array in the xaml and fill it with the brushes, then use that instead.