INotifyDataErrorInfo
trait · ferroui-system · v0.5.0
trait INotifyDataErrorInfo
Lets a model object report the validation errors of its properties, synchronously or
asynchronously (System.ComponentModel.INotifyDataErrorInfo).
The errors are untyped, as .NET's IEnumerable of errors is: a message is a String, and
anything else is the value the model reports. A reader picks the kinds it shows with
downcast_ref (OfType<string>()).
Members
has_errors
fn has_errors(self: &Self) -> bool
Whether the object has validation errors (HasErrors).
get_errors
fn get_errors(self: &Self, property_name: Option<&str>) -> Vec<Rc<dyn Any>>
The validation errors of the property named property_name, or the errors of the whole
object when it is None or empty (GetErrors(string?)); empty when there are none.
errors_changed
fn errors_changed(self: &Self) -> &Event<DataErrorsChangedEventArgs>
The event raised when the validation errors of a property, or of the whole object, have
changed (ErrorsChanged).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.