I know I am really late to the party, but you don’t need a converter for this.
You could do
<Rectangle>
<Rectangle.Fill>
<SolidColorBrush Color="{Binding YourColorProperty}" />
</Rectangle.Fill>
</Rectangle>
More Related Contents:
- Binding to static property
- How do you bind a CollectionContainer to a collection in a view model?
- Why does the binding update without implementing INotifyPropertyChanged?
- OneWayToSource binding from readonly property in XAML
- What approaches are available to dummy design-time data in WPF?
- WPF CommandParameter is NULL first time CanExecute is called
- How to format number of decimal places in wpf using style/template?
- WPF: Display a bool value as “Yes” / “No”
- How can I reduce RadioButton binding code?
- What does “{Binding Path=.}” mean in WPF binding?
- Template Binding in Control template
- Binding in WPF to element of array specified by property
- Different views / data template based on member variable
- ElementName Binding is failing
- Setting DataContext within UserControl is affecting bindings in parent
- WPF MenuItem.Command binding to ElementName results to System.Windows.Data Error: 4 : Cannot find source for binding with reference
- How can I tell my DataTemplate to bind to a property in the PARENT ViewModel?
- WPF animation: binding to the “To” attribute of storyboard animation
- Implement Validation for WPF TextBoxes
- Calling a parameterized constructor from XAML
- Setting a property with an EventTrigger
- KeyBinding in UserControl doesn’t work when TextBox has the focus
- Weird problem where Button does not get re-enabled unless the mouse is clicked
- How to display items in Canvas through Binding
- Creating an instance of a nested class in XAML
- WPF Databind Before Saving
- WPF: Changing Resources (colors) from the App.xaml during runtime
- How to set DataGrid’s row Background, based on a property value using data bindings
- What is the difference for TargetType=”{x:Type Button}” and TargetType=”Button”?
- Can you define multiple TargetTypes for one XAML style?