In This Article

NumberPickerBase<T> Class

Provides an abstract base class that can be used for pickers of a numeric value.

public abstract class NumberPickerBase<T> : RadialSliderPickerBase where T : struct, INumber<T>, IMinMaxValue<T>
Type Parameters:
T -
Inheritance:
object Visual UIElement FrameworkElement Control PickerBase RadialSliderPickerBase object
Derived:
BytePicker Int16Picker Int32Picker Int64Picker FloatingPointNumberPickerBase<T>

Constructors

NumberPickerBase()

Initializes an instance of the class.

protected NumberPickerBase()

Properties

Maximum

The highest possible value.

public T Maximum { get; set; }

Property Value

T

Minimum

The lowest possible value.

public T Minimum { get; set; }

Property Value

T

SmallChange

The small change value.

public T SmallChange { get; set; }

Property Value

T:

The default value is 1.

Value

The value of the control.

public T Value { get; set; }

Property Value

T

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

Events

ValueChanged

Occurs after the Value property value changes.

public event EventHandler? ValueChanged

Event Type

EventHandler

Fields

MaximumProperty

Defines the Maximum property.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Defines the Minimum property.

public static readonly DependencyProperty MinimumProperty

SmallChangeProperty

Defines the SmallChange property.

public static readonly DependencyProperty SmallChangeProperty

ValueProperty

Defines the Value property.

public static readonly DependencyProperty ValueProperty

Inherited Members

Extension Methods