Converts enum values to booleans to enable easy use of enumerations with WPF radio buttons.
More...
Converts enum values to booleans to enable easy use of enumerations with WPF radio buttons.
Credits to Scott @ http://stackoverflow.com/a/2908885/270712
<![CDATA[
<StackPanel>
<StackPanel.Resources>
<local:EnumToBooleanConverter x:Key="ebc" />
</StackPanel.Resources>
<RadioButton IsChecked="{Binding Path=YourEnumProperty,
Converter={StaticResource ebc},
ConverterParameter={x:Static local:YourEnumType.Enum1}}" />
<RadioButton IsChecked="{Binding Path=YourEnumProperty,
Converter={StaticResource ebc},
ConverterParameter={x:Static local:YourEnumType.Enum2}}" />
</StackPanel>
]]>