Content control that switches its template based on a boolean value.
static void OnAnyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Callback for when any of the properties change.
ControlTemplate TrueTemplate
Dependency properties for the templates to use when BoolValue is true
override void OnApplyTemplate()
Called when the control's template is applied.
bool BoolValue
Dependency property for the boolean value that determines which template to use.
void UpdateTemplate()
Updates the template based on the current value of BoolValue
ControlTemplate FalseTemplate
Dependency properties for the templates to use when BoolValue is false