Content control that selects its template based on the availability of a placeholder.
More...
|
| override void | OnApplyTemplate () |
| | Called when the control's template is applied.
|
| |
|
| static readonly DependencyProperty | IsPlaceholderAvailableValueProperty = DependencyProperty.Register(nameof(IsPlaceholderAvailable), typeof(bool), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(false, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | IsSupportedForTextProperty = DependencyProperty.Register(nameof(IsSupportedForText), typeof(bool), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(false, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | IsSupportedForTableProperty = DependencyProperty.Register(nameof(IsSupportedForTable), typeof(bool), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(false, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | NotAvailableTemplateProperty = DependencyProperty.Register(nameof(NotAvailableTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | AvailableOnlyTextTemplateProperty = DependencyProperty.Register(nameof(AvailableOnlyTextTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | AvailableOnlyTableTemplateProperty = DependencyProperty.Register(nameof(AvailableOnlyTableTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged)) |
| |
| static readonly DependencyProperty | AvailableTextAndTableTemplateProperty = DependencyProperty.Register(nameof(AvailableTextAndTableTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged)) |
| |
|
| bool | IsPlaceholderAvailable [get, set] |
| | Dependency property for the boolean value that determines if the placeholder is available.
|
| |
| bool | IsSupportedForText [get, set] |
| | Dependency property for the boolean value that determines if the placeholder is supported inside normal text.
|
| |
| bool | IsSupportedForTable [get, set] |
| | Dependency property for the boolean value that determines if the placeholder is supported inside tables.
|
| |
| ControlTemplate | NotAvailableTemplate [get, set] |
| | Dependency property for a template that is used, when the placeholder is not available.
|
| |
| ControlTemplate | AvailableOnlyTextTemplate [get, set] |
| | Dependency property for a template that is used, when the placeholder is only available inside normal text.
|
| |
| ControlTemplate | AvailableOnlyTableTemplate [get, set] |
| | Dependency property for a template that is used, when the placeholder is only available inside tables.
|
| |
| ControlTemplate | AvailableTextAndTableTemplate [get, set] |
| | Dependency property for a template that is used, when the placeholder is available inside normal text and inside tables.
|
| |
|
| void | UpdateTemplate () |
| | Updates the template based on the current values.
|
| |
|
| static void | OnAnyPropertyChanged (DependencyObject d, DependencyPropertyChangedEventArgs e) |
| | Callback for when any of the properties change.
|
| |
Content control that selects its template based on the availability of a placeholder.
Definition at line 9 of file PlaceholderAvailableContentControl.cs.
◆ OnAnyPropertyChanged()
| static void Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.OnAnyPropertyChanged |
( |
DependencyObject | d, |
|
|
DependencyPropertyChangedEventArgs | e ) |
|
staticprivate |
◆ OnApplyTemplate()
| override void Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.OnApplyTemplate |
( |
| ) |
|
◆ UpdateTemplate()
| void Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.UpdateTemplate |
( |
| ) |
|
|
private |
◆ AvailableOnlyTableTemplateProperty
◆ AvailableOnlyTextTemplateProperty
◆ AvailableTextAndTableTemplateProperty
◆ IsPlaceholderAvailableValueProperty
◆ IsSupportedForTableProperty
◆ IsSupportedForTextProperty
◆ NotAvailableTemplateProperty
◆ AvailableOnlyTableTemplate
| ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableOnlyTableTemplate |
|
getset |
◆ AvailableOnlyTextTemplate
| ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableOnlyTextTemplate |
|
getset |
◆ AvailableTextAndTableTemplate
| ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableTextAndTableTemplate |
|
getset |
◆ IsPlaceholderAvailable
| bool Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsPlaceholderAvailable |
|
getset |
◆ IsSupportedForTable
| bool Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsSupportedForTable |
|
getset |
◆ IsSupportedForText
| bool Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsSupportedForText |
|
getset |
◆ NotAvailableTemplate
| ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.NotAvailableTemplate |
|
getset |
The documentation for this class was generated from the following file: