public sealed class BridgeValidationReader Reads and observes the validation an object keeps outside INotifyDataErrorInfo, such as a ReactiveUI.Validation ValidationContext. Created by generated bridges.
Parameters
readErrorsReturns an object's errors, read as the entries of
INotifyDataErrorInfo.GetErrorswithnull, ornullwhen the object keeps no such validation (BridgeValidation.Write).observeCalls its
Actionwhenever the object's validation changes, until the result is disposed, or returnsnullwhen the object keeps no such validation. The Bridge observes its ViewModel and every object of its data graph, so a change of a rule that names no member still publishes thevalidationmember.
Constructors
BridgeValidationReader
public BridgeValidationReader(Func<object, IEnumerable?> readErrors, Func<object, Action, IDisposable?> observe) Reads and observes the validation an object keeps outside INotifyDataErrorInfo, such as a ReactiveUI.Validation ValidationContext. Created by generated bridges.
Parameters
readErrorsReturns an object's errors, read as the entries of
INotifyDataErrorInfo.GetErrorswithnull, ornullwhen the object keeps no such validation (BridgeValidation.Write).observeCalls its
Actionwhenever the object's validation changes, until the result is disposed, or returnsnullwhen the object keeps no such validation. The Bridge observes its ViewModel and every object of its data graph, so a change of a rule that names no member still publishes thevalidationmember.
Properties
Observe
public Func<object, Action, IDisposable?> Observe { get; } Observes an object's validation, or returns null when it keeps no such validation.
ReadErrors
public Func<object, IEnumerable?> ReadErrors { get; } Returns an object's errors, or null when it keeps no such validation.