Skip to main content

TemplateBinding Class

Definition​

Namespace:Avalonia.Data
Assembly:Avalonia.Base
Package:Avalonia

A XAML binding to a property on a control's templated parent.

public class TemplateBinding

Inheritance: object -> BindingBase -> TemplateBinding

Constructors​

NameDescription
TemplateBinding (2 overloads)No summary available.

TemplateBinding overloads​

TemplateBinding Constructor​

public TemplateBinding()

TemplateBinding Constructor​

public TemplateBinding(Avalonia.AvaloniaProperty property)
Parameters​

property Avalonia.AvaloniaProperty

Methods​

NameDescription
ProvideValueNo summary available.

ProvideValue Method​

public Avalonia.Data.BindingBase ProvideValue()

Returns​

Avalonia.Data.BindingBase

Properties​

NameDescription
ConverterGets or sets the Avalonia.Data.Converters.IValueConverter to use.
ConverterCultureGets or sets the culture in which to evaluate the converter.
ConverterParameterGets or sets a parameter to pass to Avalonia.Data.TemplateBinding.Converter.
ModeGets or sets the binding mode.
PropertyGets 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; }