Class CompiledBindingExtension
- Namespace
- Avalonia.Markup.Xaml.MarkupExtensions
- Assembly
- Avalonia.Markup.Xaml.dll
public class CompiledBindingExtension : BindingBase, IBinding
- Inheritance
-
CompiledBindingExtension
- Implements
- Inherited Members
Constructors
CompiledBindingExtension()
public CompiledBindingExtension()
CompiledBindingExtension(CompiledBindingPath)
public CompiledBindingExtension(CompiledBindingPath path)
Parameters
path
CompiledBindingPath
Properties
DataType
public Type? DataType { get; set; }
Property Value
Path
[ConstructorArgument("path")]
public CompiledBindingPath Path { get; set; }
Property Value
Source
public object? Source { get; set; }
Property Value
Methods
Initiate(AvaloniaObject, AvaloniaProperty?, object?, bool)
Initiates the binding on a target object.
[Obsolete("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public override InstancedBinding? Initiate(AvaloniaObject target, AvaloniaProperty? targetProperty, object? anchor = null, bool enableDataValidation = false)
Parameters
target
AvaloniaObjectThe target instance.
targetProperty
AvaloniaPropertyThe target property. May be null.
anchor
objectAn optional anchor from which to locate required context. When binding to objects that are not in the logical tree, certain types of binding need an anchor into the tree in order to locate named controls or resources. The
anchor
parameter can be used to provide this context.enableDataValidation
boolWhether data validation should be enabled.
Returns
- InstancedBinding
A InstancedBinding or null if the binding could not be resolved.
ProvideValue(IServiceProvider)
public CompiledBindingExtension ProvideValue(IServiceProvider provider)
Parameters
provider
IServiceProvider