CompiledBinding Class
Definition
A binding which does not use reflection to access members.
public class CompiledBinding
Constructors
| Name | Description |
|---|---|
| CompiledBinding (2 overloads) | Initializes a new instance of the Avalonia.Data.CompiledBinding class. |
CompiledBinding overloads
CompiledBinding Constructor
Initializes a new instance of the Avalonia.Data.CompiledBinding class.
public CompiledBinding()
CompiledBinding Constructor
Initializes a new instance of the Avalonia.Data.CompiledBinding class.
public CompiledBinding(Avalonia.Data.CompiledBindingPath path)
Parameters
path Avalonia.Data.CompiledBindingPath
The binding path.
Methods
| Name | Description |
|---|---|
| Create | No summary available. |
Create Method
public Avalonia.Data.CompiledBinding Create<TIn, TOut>(System.Linq.Expressions.Expression<Func<TIn,TOut>> expression, object source, Avalonia.Data.Converters.IValueConverter converter, Avalonia.Data.BindingMode mode, Avalonia.Data.BindingPriority priority, System.Globalization.CultureInfo converterCulture, object converterParameter, object fallbackValue, string stringFormat, object targetNullValue, Avalonia.Data.UpdateSourceTrigger updateSourceTrigger, int delay)
Parameters
expression System.Linq.Expressions.Expression<Func<TIn,TOut>>
source object
converter Avalonia.Data.Converters.IValueConverter
mode Avalonia.Data.BindingMode
priority Avalonia.Data.BindingPriority
converterCulture System.Globalization.CultureInfo
converterParameter object
fallbackValue object
stringFormat string
targetNullValue object
updateSourceTrigger Avalonia.Data.UpdateSourceTrigger
delay int
Type Parameters
TIn
TOut
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.CompiledBinding.Converter. |
| Delay | Gets or sets the amount of time, in milliseconds, to wait before updating the binding source after the value on the target changes. |
| FallbackValue | Gets or sets the value to use when the binding is unable to produce a value. |
| Mode | Gets or sets the binding mode. |
| Path | Gets or sets the binding path. |
| Priority | Gets or sets the binding priority. |
| Source | Gets or sets the source for the binding. |
| StringFormat | Gets or sets the string format. |
| TargetNullValue | Gets or sets the value to use when the binding result is null. |
| UpdateSourceTrigger | Gets or sets a value that determines the timing of binding source updates for Avalonia.Data.BindingMode.TwoWay and Avalonia.Data.BindingMode.OneWayToSource bindings. |
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.CompiledBinding.Converter.
public object ConverterParameter { get; set; }
Delay Property
Gets or sets the amount of time, in milliseconds, to wait before updating the binding source after the value on the target changes.
public int Delay { get; set; }
Remarks
There is no delay when the source is updated via Avalonia.Data.UpdateSourceTrigger.LostFocus or Avalonia.Data.BindingExpressionBase.UpdateSource. Nor is there a delay when Avalonia.Data.BindingMode.OneWayToSource is active and a new source object is provided.
FallbackValue Property
Gets or sets the value to use when the binding is unable to produce a value.
public object FallbackValue { get; set; }
Mode Property
Gets or sets the binding mode.
public Avalonia.Data.BindingMode Mode { get; set; }
Path Property
Gets or sets the binding path.
public Avalonia.Data.CompiledBindingPath Path { get; set; }
Priority Property
Gets or sets the binding priority.
public Avalonia.Data.BindingPriority Priority { get; set; }
Source Property
Gets or sets the source for the binding.
public object Source { get; set; }
StringFormat Property
Gets or sets the string format.
public string StringFormat { get; set; }
TargetNullValue Property
Gets or sets the value to use when the binding result is null.
public object TargetNullValue { get; set; }
UpdateSourceTrigger Property
Gets or sets a value that determines the timing of binding source updates for Avalonia.Data.BindingMode.TwoWay and Avalonia.Data.BindingMode.OneWayToSource bindings.
public Avalonia.Data.UpdateSourceTrigger UpdateSourceTrigger { get; set; }