I am using the MVVM pattern.
In my viewmodel I have a enum property for my radio button. This property is connected to my model's enum property:
public MyEnum MyEnumVar
{
get { return MyModel.EnumVar; }
set { MyModel.EnumVar = value; }
}
If I change to a different view and then change back to the original view, instead of the getter being called the setter gets called, and the value passed is the first option for my radio buttons.
Basically every time i switch views my models radio button's enum gets reset. Is there a way to stop the setter from being called?