BindingErrorEventArgs Class
NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Controls
Reported by controls (currently TextBox) when a reflection- based binding read or write fails. Subscribing is optional — the framework defaults to silent so a misspelled property name doesn't crash the UI, but a subscriber can log or surface the error.
public sealed class BindingErrorEventArgs
Constructors
BindingErrorEventArgs(BindingErrorDirection direction, string propertyName, Exception exception)
public BindingErrorEventArgs(BindingErrorDirection direction, string propertyName, Exception exception)
Creates a new BindingErrorEventArgs.
Properties
Direction
public BindingErrorDirection Direction { get; }
Whether the failure was a read (pull) or write (push).
PropertyName
public string PropertyName { get; }
Name of the bound property that failed.
Exception
public Exception Exception { get; }
The exception that caused the binding to fail.