I have a gender property:
public string Gender
{
get { return _gender; }
set
{
_gender = value;
OnPropertyChanged();
}
}
And two radio buttons to select two available genders:
<RadioButton GroupName="Group1" Content="Male"/>
<RadioButton GroupName="Group1" Content="Female"/>
what I wanted to do was to set the gender string to either Male or Female depending on which radio button is selected purely from data biding without code behind, is that possible if so can someone explain? I already did this for a textbox I'm just not sure how to go about a radio button