C# Class Microsoft.Samples.KMoore.WPFSamples.NumericUpDownControl.NumericUpDown

Inheritance: System.Windows.Controls.Control
Mostrar archivo Open project: daszat/zetbox Class Usage Examples

Public Properties

Property Type Description
ChangeProperty System.Windows.DependencyProperty
DecimalPlacesProperty System.Windows.DependencyProperty
MaximumProperty System.Windows.DependencyProperty
MinimumProperty System.Windows.DependencyProperty
ValueChangedEvent System.Windows.RoutedEvent
ValueProperty System.Windows.DependencyProperty
ValueStringProperty System.Windows.DependencyProperty

Protected Methods

Method Description
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnDecrease ( ) : void
OnIncrease ( ) : void
OnValueChanged ( RoutedPropertyChangedEventArgs args ) : void

Raises the ValueChanged event.

Private Methods

Method Description
CoerceChange ( DependencyObject element, object value ) : object
CoerceMaximum ( DependencyObject element, object value ) : object
CoerceMinimum ( DependencyObject element, object value ) : object
CoerceValue ( DependencyObject element, object value ) : object
InitializeCommands ( ) : void
NumericUpDown ( ) : System
OnChangeChanged ( DependencyObject element, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnDecimalPlacesChanged ( DependencyObject element, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnDecreaseCommand ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnIncreaseCommand ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnMaximumChanged ( DependencyObject element, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnMinimumChanged ( DependencyObject element, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

This is a class handler for MouseLeftButtonDown event. The purpose of this handle is to move input focus to NumericUpDown when user pressed mouse left button on any part of slider that is not focusable.

OnValueChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void
ValidateChange ( object value ) : bool
ValidateDecimalPlaces ( object value ) : bool
smallestForDecimalPlaces ( int decimalPlaces ) : decimal
updateValueString ( ) : void

Method Details

OnCreateAutomationPeer() protected method

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

OnDecrease() protected method

protected OnDecrease ( ) : void
return void

OnIncrease() protected method

protected OnIncrease ( ) : void
return void

OnValueChanged() protected method

Raises the ValueChanged event.
protected OnValueChanged ( RoutedPropertyChangedEventArgs args ) : void
args RoutedPropertyChangedEventArgs Arguments associated with the ValueChanged event.
return void

Property Details

ChangeProperty public_oe static_oe property

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

DecimalPlacesProperty public_oe static_oe property

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

MaximumProperty public_oe static_oe property

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

MinimumProperty public_oe static_oe property

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

ValueChangedEvent public_oe static_oe property

Identifies the ValueChanged routed event.
public static RoutedEvent,System.Windows ValueChangedEvent
return System.Windows.RoutedEvent

ValueProperty public_oe static_oe property

Identifies the Value dependency property.
public static DependencyProperty,System.Windows ValueProperty
return System.Windows.DependencyProperty

ValueStringProperty public_oe static_oe property

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