Gu.Wpf.NumericInput
Gu.Wpf.NumericInput copied to clipboard
IncrementStrategy
- TruncateToLimit
- DisabledIfOverflow
- Overflow
/// <summary>
/// Controls how increment and decrement behaves.
/// </summary>
public enum IncrementMode
{
/// <summary>
/// Truncate to the limit if overflow would have happened.
/// </summary>
Truncate,
/// <summary>
/// Add the increment even if it overflows the limit.
/// </summary>
Overflow,
/// <summary>
/// Don't allow incrementing if the limit would be overflown.
/// </summary>
DisableIfOverflow,
}
BoundaryPolicyOnLimitReached(kind of meh since it has a silly callback-like name)
BoundaryPolicy is nice, thanks!
/// <summary>
/// Controls how increment and decrement behaves.
/// </summary>
public enum BoundaryPolicy
{
/// <summary>
/// Truncate to the limit if overflow would have happened.
/// </summary>
Truncate,
/// <summary>
/// Add the increment even if it overflows the limit.
/// </summary>
Overflow,
/// <summary>
/// Don't allow incrementing or decrementing if the limit would be overflown.
/// </summary>
Disable,
}