C# Class MahApps.Metro.Controls.NumericUpDown

Inheritance: System.Windows.Controls.Control
Show file Open project: OfficeDev/Office-IT-Pro-Deployment-Scripts Class Usage Examples

Public Properties

Property Type Description
ButtonsAlignmentProperty System.Windows.DependencyProperty
CultureProperty DependencyProperty
DelayChangedEvent RoutedEvent
DelayProperty DependencyProperty
HideUpDownButtonsProperty DependencyProperty
InterceptArrowKeysProperty DependencyProperty
InterceptManualEnterProperty DependencyProperty
InterceptMouseWheelProperty DependencyProperty
IntervalProperty DependencyProperty
IsReadOnlyProperty DependencyProperty
MaximumProperty DependencyProperty
MaximumReachedEvent RoutedEvent
MinimumProperty DependencyProperty
MinimumReachedEvent RoutedEvent
SelectAllOnFocusProperty DependencyProperty
SpeedupProperty DependencyProperty
StringFormatProperty DependencyProperty
TextAlignmentProperty DependencyProperty
TrackMouseWheelWhenMouseOverProperty DependencyProperty
UpDownButtonsWidthProperty DependencyProperty
ValueChangedEvent RoutedEvent
ValueDecrementedEvent RoutedEvent
ValueIncrementedEvent RoutedEvent
ValueProperty DependencyProperty

Private Properties

Property Type Description
ChangeValueBy void
ChangeValueInternal void
ChangeValueInternal void
ChangeValueWithSpeedUp void
CoerceMaximum object
CoerceStringFormat object
CoerceValue object
EnableDisableDown void
EnableDisableUp void
EnableDisableUpDown void
InterceptManualEnterChangedCallback void
InternalSetText void
IntervalChanged void
IsReadOnlyPropertyChangedCallback void
NumericUpDown System
OnDelayChanged void
OnGotFocus void
OnMaximumChanged void
OnMinimumChanged void
OnSpeedupChanged void
OnStringFormatChanged void
OnTextBoxKeyDown void
OnTextBoxLostFocus void
OnTextChanged void
OnValueChanged void
OnValueTextBoxPaste void
RaiseChangeDelay void
RemoveStringFormatFromText string
ResetInternal void
SetRemoveStringFormatFromText void
ToggleReadOnlyMode void
TryFindScrollViewer ScrollViewer
ValidateDelay bool
ValidateText bool

Public Methods

Method Description
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.

SelectAll ( ) : void

Protected Methods

Method Description
OnDelayChanged ( int oldDelay, int newDelay ) : void
OnMaximumChanged ( double oldMaximum, double newMaximum ) : void
OnMinimumChanged ( double oldMinimum, double newMinimum ) : void
OnPreviewKeyDown ( KeyEventArgs e ) : void
OnPreviewKeyUp ( KeyEventArgs e ) : void
OnPreviewMouseWheel ( MouseWheelEventArgs e ) : void
OnPreviewTextInput ( object sender, TextCompositionEventArgs e ) : void
OnSpeedupChanged ( bool oldSpeedup, bool newSpeedup ) : void
OnValueChanged ( double oldValue, double newValue ) : void

Raises the ValueChanged routed event.

Private Methods

Method Description
ChangeValueBy ( double difference ) : void
ChangeValueInternal ( bool addInterval ) : void
ChangeValueInternal ( double interval ) : void
ChangeValueWithSpeedUp ( bool toPositive ) : void
CoerceMaximum ( DependencyObject d, object value ) : object
CoerceStringFormat ( DependencyObject d, object basevalue ) : object
CoerceValue ( DependencyObject d, object value ) : object
EnableDisableDown ( ) : void
EnableDisableUp ( ) : void
EnableDisableUpDown ( ) : void
InterceptManualEnterChangedCallback ( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e ) : void
InternalSetText ( double newValue ) : void
IntervalChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
IsReadOnlyPropertyChangedCallback ( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e ) : void
NumericUpDown ( ) : System
OnDelayChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnGotFocus ( object sender, RoutedEventArgs e ) : void

Called when this element or any below gets focus.

OnMaximumChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnMinimumChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnSpeedupChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnStringFormatChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnTextBoxKeyDown ( object sender, KeyEventArgs e ) : void
OnTextBoxLostFocus ( object sender, RoutedEventArgs e ) : void
OnTextChanged ( object sender, TextChangedEventArgs e ) : void
OnValueChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnValueTextBoxPaste ( object sender, DataObjectPastingEventArgs e ) : void
RaiseChangeDelay ( ) : void
RemoveStringFormatFromText ( string text ) : string
ResetInternal ( ) : void
SetRemoveStringFormatFromText ( string stringFormat ) : void
ToggleReadOnlyMode ( bool isReadOnly ) : void
TryFindScrollViewer ( ) : ScrollViewer
ValidateDelay ( object value ) : bool
ValidateText ( string text, double &convertedValue ) : bool

Method Details

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
return void

OnDelayChanged() protected method

protected OnDelayChanged ( int oldDelay, int newDelay ) : void
oldDelay int
newDelay int
return void

OnMaximumChanged() protected method

protected OnMaximumChanged ( double oldMaximum, double newMaximum ) : void
oldMaximum double
newMaximum double
return void

OnMinimumChanged() protected method

protected OnMinimumChanged ( double oldMinimum, double newMinimum ) : void
oldMinimum double
newMinimum double
return void

OnPreviewKeyDown() protected method

protected OnPreviewKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnPreviewKeyUp() protected method

protected OnPreviewKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnPreviewMouseWheel() protected method

protected OnPreviewMouseWheel ( MouseWheelEventArgs e ) : void
e MouseWheelEventArgs
return void

OnPreviewTextInput() protected method

protected OnPreviewTextInput ( object sender, TextCompositionEventArgs e ) : void
sender object
e TextCompositionEventArgs
return void

OnSpeedupChanged() protected method

protected OnSpeedupChanged ( bool oldSpeedup, bool newSpeedup ) : void
oldSpeedup bool
newSpeedup bool
return void

OnValueChanged() protected method

Raises the ValueChanged routed event.
protected OnValueChanged ( double oldValue, double newValue ) : void
oldValue double /// Old value of the property ///
newValue double /// New value of the property ///
return void

SelectAll() public method

public SelectAll ( ) : void
return void

Property Details

ButtonsAlignmentProperty public static property

public static DependencyProperty,System.Windows ButtonsAlignmentProperty
return System.Windows.DependencyProperty

CultureProperty public static property

public static DependencyProperty CultureProperty
return DependencyProperty

DelayChangedEvent public static property

public static RoutedEvent DelayChangedEvent
return RoutedEvent

DelayProperty public static property

public static DependencyProperty DelayProperty
return DependencyProperty

HideUpDownButtonsProperty public static property

public static DependencyProperty HideUpDownButtonsProperty
return DependencyProperty

InterceptArrowKeysProperty public static property

public static DependencyProperty InterceptArrowKeysProperty
return DependencyProperty

InterceptManualEnterProperty public static property

public static DependencyProperty InterceptManualEnterProperty
return DependencyProperty

InterceptMouseWheelProperty public static property

public static DependencyProperty InterceptMouseWheelProperty
return DependencyProperty

IntervalProperty public static property

public static DependencyProperty IntervalProperty
return DependencyProperty

IsReadOnlyProperty public static property

public static DependencyProperty IsReadOnlyProperty
return DependencyProperty

MaximumProperty public static property

public static DependencyProperty MaximumProperty
return DependencyProperty

MaximumReachedEvent public static property

public static RoutedEvent MaximumReachedEvent
return RoutedEvent

MinimumProperty public static property

public static DependencyProperty MinimumProperty
return DependencyProperty

MinimumReachedEvent public static property

public static RoutedEvent MinimumReachedEvent
return RoutedEvent

SelectAllOnFocusProperty public static property

public static DependencyProperty SelectAllOnFocusProperty
return DependencyProperty

SpeedupProperty public static property

public static DependencyProperty SpeedupProperty
return DependencyProperty

StringFormatProperty public static property

public static DependencyProperty StringFormatProperty
return DependencyProperty

TextAlignmentProperty public static property

public static DependencyProperty TextAlignmentProperty
return DependencyProperty

TrackMouseWheelWhenMouseOverProperty public static property

public static DependencyProperty TrackMouseWheelWhenMouseOverProperty
return DependencyProperty

UpDownButtonsWidthProperty public static property

public static DependencyProperty UpDownButtonsWidthProperty
return DependencyProperty

ValueChangedEvent public static property

public static RoutedEvent ValueChangedEvent
return RoutedEvent

ValueDecrementedEvent public static property

public static RoutedEvent ValueDecrementedEvent
return RoutedEvent

ValueIncrementedEvent public static property

public static RoutedEvent ValueIncrementedEvent
return RoutedEvent

ValueProperty public static property

public static DependencyProperty ValueProperty
return DependencyProperty