1: <Window x:Class="WPFToEnum.Window1"
2: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4: xmlns:this="clr-namespace:WPFToEnum"
5: Title="Window1" Height="300" Width="300">
6: <Window.Resources>
7: <this:TheViewModel x:Key="tvm" PowerLevel="Medium" />
8: <this:PowerToBooleanConverter x:Key="converter" />
9: </Window.Resources>
10: <StackPanel DataContext="{StaticResource tvm}">
11: <RadioButton IsChecked="{Binding PowerLevel, Converter={StaticResource converter}, ConverterParameter=Low}">Low</RadioButton>
12: <RadioButton IsChecked="{Binding PowerLevel, Converter={StaticResource converter}, ConverterParameter=Medium}">Medium</RadioButton>
13: <RadioButton IsChecked="{Binding PowerLevel, Converter={StaticResource converter}, ConverterParameter=High}">High</RadioButton>
14: </StackPanel>
15: </Window>