ReflectionBinding Class
Definition
A binding that uses reflection to access members.
public class ReflectionBinding
Constructors
| Name | Description |
|---|---|
| ReflectionBinding (2 overloads) | Initializes a new instance of the Avalonia.Data.ReflectionBinding class. |
ReflectionBinding overloads
ReflectionBinding Constructor
Initializes a new instance of the Avalonia.Data.ReflectionBinding class.
public ReflectionBinding()
ReflectionBinding Constructor
Initializes a new instance of the Avalonia.Data.ReflectionBinding class.
public ReflectionBinding(string path)
Parameters
path string
The binding path.
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.ReflectionBinding.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. |
| ElementName | Gets or sets the name of the element to use as the binding source. |
| 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. |
| RelativeSource | Gets or sets the relative source for the binding. |
| 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. |
| TypeResolver | Gets or sets a function used to resolve types from names in the binding path. |
| 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.ReflectionBinding.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.
ElementName Property
Gets or sets the name of the element to use as the binding source.
public string ElementName { get; set; }
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 string Path { get; set; }
Priority Property
Gets or sets the binding priority.
public Avalonia.Data.BindingPriority Priority { get; set; }
RelativeSource Property
Gets or sets the relative source for the binding.
public Avalonia.Data.RelativeSource RelativeSource { 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; }
TypeResolver Property
Gets or sets a function used to resolve types from names in the binding path.
public Func<string, string, Type> TypeResolver { 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; }