I have a checkbox in a UserControl:
<CheckBox Content="Existing" IsChecked="{Binding Path=IsExistingTemplate, Mode=TwoWay}"/>
It is bound to a DataContext with Property IsExistingTemplate which always returns False. (In my real application, it doesn't always return False!). DataContext implements INotifyPropertyChanged.
public bool? IsExistingTemplate { get { return false; } set { OnPropertyChanged("IsExistingTemplate") } }
When the user clicks the CheckBox, the CheckBox always shows a tick.
How can I force the CheckBox not to show a tick when the user Clicks it?