16 get => (bool)GetValue(IsPlaceholderAvailableValueProperty);
17 set => SetValue(IsPlaceholderAvailableValueProperty, value);
26 get => (bool)GetValue(IsSupportedForTextProperty);
27 set => SetValue(IsSupportedForTextProperty, value);
36 get => (bool)GetValue(IsSupportedForTableProperty);
37 set => SetValue(IsSupportedForTableProperty, value);
46 get => (ControlTemplate)GetValue(NotAvailableTemplateProperty);
47 set => SetValue(NotAvailableTemplateProperty, value);
56 get => (ControlTemplate)GetValue(AvailableOnlyTextTemplateProperty);
57 set => SetValue(AvailableOnlyTextTemplateProperty, value);
66 get => (ControlTemplate)GetValue(AvailableOnlyTableTemplateProperty);
67 set => SetValue(AvailableOnlyTableTemplateProperty, value);
76 get => (ControlTemplate)GetValue(AvailableTextAndTableTemplateProperty);
77 set => SetValue(AvailableTextAndTableTemplateProperty, value);
88 control.UpdateTemplate();
120 base.OnApplyTemplate();
Content control that selects its template based on the availability of a placeholder.
ControlTemplate NotAvailableTemplate
Dependency property for a template that is used, when the placeholder is not available.
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.
ControlTemplate AvailableOnlyTableTemplate
Dependency property for a template that is used, when the placeholder is only available inside tables...
bool IsPlaceholderAvailable
Dependency property for the boolean value that determines if the placeholder is available.
ControlTemplate AvailableTextAndTableTemplate
Dependency property for a template that is used, when the placeholder is available inside normal text...
override void OnApplyTemplate()
Called when the control's template is applied.
bool IsSupportedForTable
Dependency property for the boolean value that determines if the placeholder is supported inside tabl...
ControlTemplate AvailableOnlyTextTemplate
Dependency property for a template that is used, when the placeholder is only available inside normal...
bool IsSupportedForText
Dependency property for the boolean value that determines if the placeholder is supported inside norm...