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

Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: daszat/zetbox Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes protégées

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

Raises the ValueChanged event.

Private Methods

Méthode 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 méthode

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
Résultat System.Windows.Automation.Peers.AutomationPeer

OnDecrease() protected méthode

protected OnDecrease ( ) : void
Résultat void

OnIncrease() protected méthode

protected OnIncrease ( ) : void
Résultat void

OnValueChanged() protected méthode

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

Property Details

ChangeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ChangeProperty
Résultat System.Windows.DependencyProperty

DecimalPlacesProperty public_oe static_oe property

public static DependencyProperty,System.Windows DecimalPlacesProperty
Résultat System.Windows.DependencyProperty

MaximumProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaximumProperty
Résultat System.Windows.DependencyProperty

MinimumProperty public_oe static_oe property

public static DependencyProperty,System.Windows MinimumProperty
Résultat System.Windows.DependencyProperty

ValueChangedEvent public_oe static_oe property

Identifies the ValueChanged routed event.
public static RoutedEvent,System.Windows ValueChangedEvent
Résultat System.Windows.RoutedEvent

ValueProperty public_oe static_oe property

Identifies the Value dependency property.
public static DependencyProperty,System.Windows ValueProperty
Résultat System.Windows.DependencyProperty

ValueStringProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueStringProperty
Résultat System.Windows.DependencyProperty