Hi,
In am working on MVVM based WPF application. In my application, i will be reading/saving my data to the data base (SQL compact .sdf file)
I have list of records displayed in a list box. when i select a record from the list box, the corresponding data gets loaded on the screen.
I have set of radio buttons in my application.
My problem is:
When i load a record for the first time, the radio options are getting set properly but, when i go to other window and come to to the original window, the record in the list box is being shown as selected and all the otehr data (displayed in the textboxes)are being showed but my none of the radio options are not getting selected.
Can anyone let me know what could be the reason.
For reference i am pasting XAML code for my radio buttons.
<StackPanel Visibility="Visible">
<RadioButton Name="rbtnUDBL" Command="{Binding RadioBoxCommand}" GroupName="Co" Content="Option1" IsChecked="{Binding Path=DisplayedProperty, Converter={StaticResource BooleanToStringValueConverter}, ConverterParameter='0'}"></RadioButton>
<Separator Height="10" Visibility="Hidden"></Separator>
<RadioButton Name="radioButton2" Command="{Binding RadioBoxCommand}" GroupName="Co" Content="Option2" IsChecked="{Binding Path=DisplayedProperty, Converter={StaticResource BooleanToStringValueConverter}, ConverterParameter='1'}"></RadioButton>
<Separator Height="10" Visibility="Hidden"></Separator>
<RadioButton Name="radioButton3" Command="{Binding RadioBoxCommand}" GroupName="Co" Content="Option3" IsChecked="{Binding Path=DisplayedProperty, Converter={StaticResource BooleanToStringValueConverter}, ConverterParameter='2'}"></RadioButton>
<Separator Height="10" Visibility="Hidden"></Separator>
</StackPanel>