GuOrg / Gu.Wpf.NumericInput

MIT License
74 stars 20 forks source link

ErrorStrategy #21

Open JohanLarsson opened 8 years ago

JohanLarsson commented 8 years ago
JohanLarsson commented 7 years ago
/// <summary>
/// Controls how validation errors are handled.
/// </summary>
public enum ValidationErrorUpdateMode
{
    /// <summary>
    /// Resets the value, not the view. This asserts that the invalid value will not be sent to the binding source on lost focus.
    /// </summary>
    Reset,

    /// <summary>
    /// Update the binding source with the invalid value. When this happens will depend on the bindings UpdateSourceTrigger
    /// </summary>
    UpdateSource
}