0

please help me about following things with MVVM in WPF windows based application.

  1. how to bind radio button
  2. how to assign value to radio button
Malshan
  • 15
  • 7

1 Answers1

0

You have to bind each RadioButton's IsChecked separately and use eg. Converter to determine value (convert from enum to bool). You read about it here or here.

If don't care about initial value (so binding model to the view), and just want "do some action" after checking, you can do something like Nitin suggest here.

Community
  • 1
  • 1
Carnifex
  • 533
  • 3
  • 10