C# Класс Microsoft.Samples.KMoore.WPFSamples.NumericUpDownControl.NumericUpDown

Наследование: System.Windows.Controls.Control
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Защищенные методы

Метод Описание
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnDecrease ( ) : void
OnIncrease ( ) : void
OnValueChanged ( RoutedPropertyChangedEventArgs args ) : void

Raises the ValueChanged event.

Приватные методы

Метод Описание
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

Описание методов

OnCreateAutomationPeer() защищенный Метод

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
Результат System.Windows.Automation.Peers.AutomationPeer

OnDecrease() защищенный Метод

protected OnDecrease ( ) : void
Результат void

OnIncrease() защищенный Метод

protected OnIncrease ( ) : void
Результат void

OnValueChanged() защищенный Метод

Raises the ValueChanged event.
protected OnValueChanged ( RoutedPropertyChangedEventArgs args ) : void
args RoutedPropertyChangedEventArgs Arguments associated with the ValueChanged event.
Результат void

Описание свойств

ChangeProperty публичное статическое свойство

public static DependencyProperty,System.Windows ChangeProperty
Результат System.Windows.DependencyProperty

DecimalPlacesProperty публичное статическое свойство

public static DependencyProperty,System.Windows DecimalPlacesProperty
Результат System.Windows.DependencyProperty

MaximumProperty публичное статическое свойство

public static DependencyProperty,System.Windows MaximumProperty
Результат System.Windows.DependencyProperty

MinimumProperty публичное статическое свойство

public static DependencyProperty,System.Windows MinimumProperty
Результат System.Windows.DependencyProperty

ValueChangedEvent публичное статическое свойство

Identifies the ValueChanged routed event.
public static RoutedEvent,System.Windows ValueChangedEvent
Результат System.Windows.RoutedEvent

ValueProperty публичное статическое свойство

Identifies the Value dependency property.
public static DependencyProperty,System.Windows ValueProperty
Результат System.Windows.DependencyProperty

ValueStringProperty публичное статическое свойство

public static DependencyProperty,System.Windows ValueStringProperty
Результат System.Windows.DependencyProperty