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)
- C#
- VB
- F#
public class TemplateBinding : UntypedBindingExpressionBase,
IBinding, IDescription, ISetterValue, IDisposable, IObserver<Object>,
IObservable<Object>
Public Class TemplateBinding
Inherits UntypedBindingExpressionBase
Implements IBinding, IDescription, ISetterValue, IDisposable,
IObserver(Of Object), IObservable(Of Object)
type TemplateBinding =
class
inherit UntypedBindingExpressionBase
interface IBinding
interface IDescription
interface ISetterValue
interface IDisposable
interface IObserver<Object>
interface IObservable<Object>
end
Inheritance | Object → BindingExpressionBase → UntypedBindingExpressionBase → TemplateBinding |
Implements | IBinding, 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
Converter | Gets or sets the IValueConverter to use. |
ConverterCulture | Gets or sets the culture in which to evaluate the converter. |
ConverterParameter | Gets or sets a parameter to pass to Converter. |
Description | Gets a description of the binding expression. (Overrides UntypedBindingExpressionBase.Description) |
Mode | Gets or sets the binding mode. |
Property | Gets 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) |