Content control that switches its template based on a boolean value.
More...
|
| override void | OnApplyTemplate () |
| | Called when the control's template is applied.
|
| |
|
| static readonly DependencyProperty | BoolValueProperty = DependencyProperty.Register(nameof(BoolValue), typeof(bool), typeof(BoolTemplateContentControl), new PropertyMetadata(false, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | TrueTemplateProperty = DependencyProperty.Register(nameof(TrueTemplate), typeof(ControlTemplate), typeof(BoolTemplateContentControl), new PropertyMetadata(null, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | FalseTemplateProperty = DependencyProperty.Register(nameof(FalseTemplate), typeof(ControlTemplate), typeof(BoolTemplateContentControl), new PropertyMetadata(null, OnAnyPropertyChanged)) |
| |
|
| bool | BoolValue [get, set] |
| | Dependency property for the boolean value that determines which template to use.
|
| |
| ControlTemplate | TrueTemplate [get, set] |
| | Dependency properties for the templates to use when BoolValue is true
|
| |
| ControlTemplate | FalseTemplate [get, set] |
| | Dependency properties for the templates to use when BoolValue is false
|
| |
|
| static void | OnAnyPropertyChanged (DependencyObject d, DependencyPropertyChangedEventArgs e) |
| | Callback for when any of the properties change.
|
| |
Content control that switches its template based on a boolean value.
Definition at line 9 of file BoolTemplateContentControl.cs.
◆ OnAnyPropertyChanged()
| static void Vereinsmeisterschaften.Controls.BoolTemplateContentControl.OnAnyPropertyChanged |
( |
DependencyObject | d, |
|
|
DependencyPropertyChangedEventArgs | e ) |
|
staticprivate |
◆ OnApplyTemplate()
| override void Vereinsmeisterschaften.Controls.BoolTemplateContentControl.OnApplyTemplate |
( |
| ) |
|
◆ UpdateTemplate()
| void Vereinsmeisterschaften.Controls.BoolTemplateContentControl.UpdateTemplate |
( |
| ) |
|
|
private |
◆ BoolValueProperty
◆ FalseTemplateProperty
◆ TrueTemplateProperty
◆ BoolValue
| bool Vereinsmeisterschaften.Controls.BoolTemplateContentControl.BoolValue |
|
getset |
◆ FalseTemplate
| ControlTemplate Vereinsmeisterschaften.Controls.BoolTemplateContentControl.FalseTemplate |
|
getset |
◆ TrueTemplate
| ControlTemplate Vereinsmeisterschaften.Controls.BoolTemplateContentControl.TrueTemplate |
|
getset |
The documentation for this class was generated from the following file: