Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.Controls.NumericUpDown Class Reference
Inheritance diagram for VolumeControl.WPF.Controls.NumericUpDown:
Collaboration diagram for VolumeControl.WPF.Controls.NumericUpDown:

Public Member Functions

override void OnApplyTemplate ()
 
int GetDecimalPlacesCount (string valueString)
 

Static Public Attributes

static readonly DependencyProperty ValueProperty
 
static readonly DependencyProperty MaxValueProperty = DependencyProperty.Register("MaxValue", typeof(decimal), typeof(NumericUpDown), new PropertyMetadata(100000000m, OnMaxValueChanged, CoerceMaxValue))
 
static readonly DependencyProperty MinValueProperty
 
static readonly DependencyProperty DecimalPlacesProperty = DependencyProperty.Register("DecimalPlaces", typeof(int), typeof(NumericUpDown), new PropertyMetadata(0, OnDecimalPlacesChanged, CoerceDecimalPlaces))
 
static readonly DependencyProperty MaxDecimalPlacesProperty = DependencyProperty.Register("MaxDecimalPlaces", typeof(int), typeof(NumericUpDown), new PropertyMetadata(28, OnMaxDecimalPlacesChanged, CoerceMaxDecimalPlaces))
 
static readonly DependencyProperty MinDecimalPlacesProperty = DependencyProperty.Register("MinDecimalPlaces", typeof(int), typeof(NumericUpDown), new PropertyMetadata(0, OnMinDecimalPlacesChanged, CoerceMinDecimalPlaces))
 
static readonly DependencyProperty IsDecimalPointDynamicProperty = DependencyProperty.Register("IsDecimalPointDynamic", typeof(bool), typeof(NumericUpDown), new PropertyMetadata(false))
 
static readonly DependencyProperty MinorDeltaProperty = DependencyProperty.Register("MinorDelta", typeof(decimal), typeof(NumericUpDown), new PropertyMetadata(1m, OnMinorDeltaChanged, CoerceMinorDelta))
 
static readonly DependencyProperty MajorDeltaProperty = DependencyProperty.Register("MajorDelta", typeof(decimal), typeof(NumericUpDown), new PropertyMetadata(10m, OnMajorDeltaChanged, CoerceMajorDelta))
 
static readonly DependencyProperty IsThousandSeparatorVisibleProperty = DependencyProperty.Register("IsThousandSeparatorVisible", typeof(bool), typeof(NumericUpDown), new PropertyMetadata(false, OnIsThousandSeparatorVisibleChanged))
 
static readonly DependencyProperty IsAutoSelectionActiveProperty = DependencyProperty.Register("IsAutoSelectionActive", typeof(bool), typeof(NumericUpDown), new PropertyMetadata(false))
 
static readonly DependencyProperty IsValueWrapAllowedProperty = DependencyProperty.Register("IsValueWrapAllowed", typeof(bool), typeof(NumericUpDown), new PropertyMetadata(false))
 
static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(NumericUpDown), new(new CornerRadius(0)))
 

Protected Attributes

readonly CultureInfo Culture
 
RepeatButton DecreaseButton
 
RepeatButton IncreaseButton
 
TextBox TextBox
 

Properties

decimal Value [get, set]
 
decimal MaxValue [get, set]
 
decimal MinValue [get, set]
 
int DecimalPlaces [get, set]
 
int MaxDecimalPlaces [get, set]
 
int MinDecimalPlaces [get, set]
 
bool IsDecimalPointDynamic [get, set]
 
decimal MinorDelta [get, set]
 
decimal MajorDelta [get, set]
 
bool IsThousandSeparatorVisible [get, set]
 
bool IsAutoSelectionActive [get, set]
 
bool IsValueWrapAllowed [get, set]
 
CornerRadius CornerRadius [get, set]
 

Detailed Description

Member Data Documentation

◆ MinValueProperty

readonly DependencyProperty VolumeControl.WPF.Controls.NumericUpDown.MinValueProperty
static
Initial value:
=
DependencyProperty.Register("MinValue", typeof(decimal), typeof(NumericUpDown),
new PropertyMetadata(0m, OnMinValueChanged,
CoerceMinValue))

◆ ValueProperty

readonly DependencyProperty VolumeControl.WPF.Controls.NumericUpDown.ValueProperty
static
Initial value:
=
DependencyProperty.Register("Value", typeof(decimal), typeof(NumericUpDown),
new FrameworkPropertyMetadata(
0m,
FrameworkPropertyMetadataOptions.BindsTwoWayByDefault | FrameworkPropertyMetadataOptions.Journal,
OnValueChanged,
CoerceValue,
false,
System.Windows.Data.UpdateSourceTrigger.Explicit))

The documentation for this class was generated from the following file: