TemplateBinding Class
Definition
A XAML binding to a property on a control's templated parent.
public class TemplateBinding
Constructors
| Name | Description |
|---|---|
| TemplateBinding (2 overloads) | No summary available. |
TemplateBinding overloads
TemplateBinding Constructor
public TemplateBinding()
TemplateBinding Constructor
public TemplateBinding(Avalonia.AvaloniaProperty property)
Parameters
property Avalonia.AvaloniaProperty
Methods
| Name | Description |
|---|---|
| ProvideValue | No summary available. |
ProvideValue Method
public Avalonia.Data.BindingBase ProvideValue()
Returns
Properties
| Name | Description |
|---|---|
| Converter | Gets or sets the Avalonia.Data.Converters.IValueConverter to use. |
| ConverterCulture | Gets or sets the culture in which to evaluate the converter. |
| ConverterParameter | Gets or sets a parameter to pass to Avalonia.Data.TemplateBinding.Converter. |
| Mode | Gets or sets the binding mode. |
| Property | Gets or sets the name of the source property on the templated parent. |
Converter Property
Gets or sets the Avalonia.Data.Converters.IValueConverter to use.
public Avalonia.Data.Converters.IValueConverter Converter { get; set; }
ConverterCulture Property
Gets or sets the culture in which to evaluate the converter.
public System.Globalization.CultureInfo ConverterCulture { get; set; }
Value
The default value is null.
Remarks
If this property is not set then System.Globalization.CultureInfo.CurrentCulture will be used.
ConverterParameter Property
Gets or sets a parameter to pass to Avalonia.Data.TemplateBinding.Converter.
public object ConverterParameter { get; set; }
Mode Property
Gets or sets the binding mode.
public Avalonia.Data.BindingMode Mode { get; set; }
Property Property
Gets or sets the name of the source property on the templated parent.
public Avalonia.AvaloniaProperty Property { get; set; }