Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl Class Reference

Content control that selects its template based on the availability of a placeholder. More...

Inheritance diagram for Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl:

Public Member Functions

override void OnApplyTemplate ()
 Called when the control's template is applied.
 

Static Public Attributes

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))
 

Properties

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.
 

Private Member Functions

void UpdateTemplate ()
 Updates the template based on the current values.
 

Static Private Member Functions

static void OnAnyPropertyChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 Callback for when any of the properties change.
 

Detailed Description

Content control that selects its template based on the availability of a placeholder.

Definition at line 9 of file PlaceholderAvailableContentControl.cs.

Member Function Documentation

◆ OnAnyPropertyChanged()

static void Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.OnAnyPropertyChanged ( DependencyObject d,
DependencyPropertyChangedEventArgs e )
staticprivate

Callback for when any of the properties change.

Definition at line 85 of file PlaceholderAvailableContentControl.cs.

◆ OnApplyTemplate()

override void Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.OnApplyTemplate ( )

Called when the control's template is applied.

This is where we set the initial template.

Definition at line 118 of file PlaceholderAvailableContentControl.cs.

◆ UpdateTemplate()

void Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.UpdateTemplate ( )
private

Updates the template based on the current values.

Definition at line 94 of file PlaceholderAvailableContentControl.cs.

Member Data Documentation

◆ AvailableOnlyTableTemplateProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableOnlyTableTemplateProperty = DependencyProperty.Register(nameof(AvailableOnlyTableTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged))
static

Definition at line 69 of file PlaceholderAvailableContentControl.cs.

◆ AvailableOnlyTextTemplateProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableOnlyTextTemplateProperty = DependencyProperty.Register(nameof(AvailableOnlyTextTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged))
static

Definition at line 59 of file PlaceholderAvailableContentControl.cs.

◆ AvailableTextAndTableTemplateProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableTextAndTableTemplateProperty = DependencyProperty.Register(nameof(AvailableTextAndTableTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged))
static

Definition at line 79 of file PlaceholderAvailableContentControl.cs.

◆ IsPlaceholderAvailableValueProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsPlaceholderAvailableValueProperty = DependencyProperty.Register(nameof(IsPlaceholderAvailable), typeof(bool), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(false, OnAnyPropertyChanged))
static

Definition at line 19 of file PlaceholderAvailableContentControl.cs.

◆ IsSupportedForTableProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsSupportedForTableProperty = DependencyProperty.Register(nameof(IsSupportedForTable), typeof(bool), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(false, OnAnyPropertyChanged))
static

Definition at line 39 of file PlaceholderAvailableContentControl.cs.

◆ IsSupportedForTextProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsSupportedForTextProperty = DependencyProperty.Register(nameof(IsSupportedForText), typeof(bool), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(false, OnAnyPropertyChanged))
static

Definition at line 29 of file PlaceholderAvailableContentControl.cs.

◆ NotAvailableTemplateProperty

readonly DependencyProperty Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.NotAvailableTemplateProperty = DependencyProperty.Register(nameof(NotAvailableTemplate), typeof(ControlTemplate), typeof(PlaceholderAvailableContentControl), new PropertyMetadata(null, OnAnyPropertyChanged))
static

Definition at line 49 of file PlaceholderAvailableContentControl.cs.

Property Documentation

◆ AvailableOnlyTableTemplate

ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableOnlyTableTemplate
getset

Dependency property for a template that is used, when the placeholder is only available inside tables.

Definition at line 64 of file PlaceholderAvailableContentControl.cs.

◆ AvailableOnlyTextTemplate

ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableOnlyTextTemplate
getset

Dependency property for a template that is used, when the placeholder is only available inside normal text.

Definition at line 54 of file PlaceholderAvailableContentControl.cs.

◆ AvailableTextAndTableTemplate

ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.AvailableTextAndTableTemplate
getset

Dependency property for a template that is used, when the placeholder is available inside normal text and inside tables.

Definition at line 74 of file PlaceholderAvailableContentControl.cs.

◆ IsPlaceholderAvailable

bool Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsPlaceholderAvailable
getset

Dependency property for the boolean value that determines if the placeholder is available.

Definition at line 14 of file PlaceholderAvailableContentControl.cs.

◆ IsSupportedForTable

bool Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsSupportedForTable
getset

Dependency property for the boolean value that determines if the placeholder is supported inside tables.

Definition at line 34 of file PlaceholderAvailableContentControl.cs.

◆ IsSupportedForText

bool Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.IsSupportedForText
getset

Dependency property for the boolean value that determines if the placeholder is supported inside normal text.

Definition at line 24 of file PlaceholderAvailableContentControl.cs.

◆ NotAvailableTemplate

ControlTemplate Vereinsmeisterschaften.Controls.PlaceholderAvailableContentControl.NotAvailableTemplate
getset

Dependency property for a template that is used, when the placeholder is not available.

Definition at line 44 of file PlaceholderAvailableContentControl.cs.


The documentation for this class was generated from the following file: