This question is locked. New answers and comments are not allowed.
Dear Telerik Team,
I am trying to bind the RadToggleSwitch control with my viewmodel and I can't seem to get it working. The field is defined as bool and is also nullable. Could you please help me?
I am trying to bind the RadToggleSwitch control with my viewmodel and I can't seem to get it working. The field is defined as bool and is also nullable. Could you please help me?
<telerikPrimitives:RadToggleSwitch Header="Trade-in Deduction" Name="tsTradeinCredit" Grid.ColumnSpan="2" Margin="12,0,8,0" IsChecked="{Binding HasTradeInDeducation}" Checked="tsTradeinCredit_Checked" Unchecked="tsTradeinCredit_Unchecked" TabIndex="1" > <telerikPrimitives:RadToggleSwitch.HeaderTemplate> <DataTemplate> <ContentControl Foreground="Black" Content="{Binding}" FontFamily="Segoe WP" FontSize="22.5"/> </DataTemplate> </telerikPrimitives:RadToggleSwitch.HeaderTemplate> <telerikPrimitives:RadToggleSwitch.ContentTemplate> <DataTemplate> <ContentControl Content="{Binding}" Foreground="Black" FontFamily="Segoe WP" FontSize="22.5" /> </DataTemplate> </telerikPrimitives:RadToggleSwitch.ContentTemplate> </telerikPrimitives:RadToggleSwitch>