0

I was using this link to solve my problem. MVVM: Binding radio buttons to a view model?

Now my current issue is , i would like to show some radio button from the listbox as checked by default when the screen is loaded at first.

Kind regards, Suresh

Community
  • 1
  • 1
user11070
  • 3
  • 3
  • set that corresponding `ListBoxItem`'s VM value as selected in your VM on startup? – Viv Jun 19 '13 at 15:19

1 Answers1

0

Since your RadioButtons are bound to your ViewModel, then all you need to do is set the value in your ViewModel to the default that you desire in the ViewModel's constructor. This is what makes using a ViewModel so convenient, you can manipulate the data and its values without concerning the user interface.

Alan
  • 7,875
  • 1
  • 28
  • 48