Skip to main content

TemplateBinding Class

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

Definition

Namespace: Avalonia.Data
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class TemplateBinding : UntypedBindingExpressionBase, 
IBinding, IDescription, ISetterValue, IDisposable, IObserver<Object>,
IObservable<Object>
View Source
InheritanceObjectBindingExpressionBase → UntypedBindingExpressionBase → TemplateBinding
ImplementsIBinding, IDescription, ISetterValue, IDisposable, IObservable(Object), IObserver(Object)

Constructors

TemplateBinding()Initializes a new instance of the TemplateBinding class
TemplateBinding(AvaloniaProperty)Initializes a new instance of the TemplateBinding class

Properties

ConverterGets or sets the IValueConverter to use.
ConverterCultureGets or sets the culture in which to evaluate the converter.
ConverterParameterGets or sets a parameter to pass to Converter.
DescriptionGets a description of the binding expression.
(Overrides UntypedBindingExpressionBase.Description)
ModeGets or sets the binding mode.
PropertyGets or sets the name of the source property on the templated parent.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
Initiate(AvaloniaObject, AvaloniaProperty, Object, Boolean) 
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ProvideValue() 
StartCore()
(Overrides UntypedBindingExpressionBase.StartCore())
StopCore()
(Overrides UntypedBindingExpressionBase.StopCore())
Subscribe(IObserver(Object)) 
ToString()Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

StreamBinding(Object)()
(Defined by StreamBindingExtensions)
ToBinding(Object)()Converts an IObservable(T) to an IBinding.
(Defined by AvaloniaObjectExtensions)

See Also

Reference

Avalonia.Data Namespace