I’ve got a little problem binding an image to a Radiobuttion. I only want to bind it via XAML an what I did is this.. I createad a Stackpanel with 5 radiobutton in it..
I assume that "IsChecked" property is Boolean. In order to bind Visibility property you must bind to Visibility type property or use converter.
If you don't want to use converter you need to declare Visibility notification property:
private Visibility isChecked= Visibility.Visible;
public Visibility IsChecked
{
get { return isChecked; }
set
{
isChecked = value;
RaisePropertyChanged("IsChecked");
}
}
If you want to stay with your Boolean parameter, use Visibility converter