Update NumericUpDown.cs
This commit is contained in:
1 parent
c9920ba951
commit
cce5fab8b2
1 file changed
+12
-12
@@ -176,8 +176,8 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
var ctl = (NumericUpDown) d;
|
var ctl = (NumericUpDown)d;
|
||||||
var v = (double) e.NewValue;
|
var v = (double)e.NewValue;
|
||||||
ctl.SetText();
|
ctl.SetText();
|
||||||
|
|
||||||
ctl.OnValueChanged(new FunctionEventArgs<double>(ValueChangedEvent, ctl)
|
ctl.OnValueChanged(new FunctionEventArgs<double>(ValueChangedEvent, ctl)
|
||||||
@@ -247,7 +247,7 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public double Maximum
|
public double Maximum
|
||||||
{
|
{
|
||||||
get => (double) GetValue(MaximumProperty);
|
get => (double)GetValue(MaximumProperty);
|
||||||
set => SetValue(MaximumProperty, value);
|
set => SetValue(MaximumProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +275,7 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public double Minimum
|
public double Minimum
|
||||||
{
|
{
|
||||||
get => (double) GetValue(MinimumProperty);
|
get => (double)GetValue(MinimumProperty);
|
||||||
set => SetValue(MinimumProperty, value);
|
set => SetValue(MinimumProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,7 +290,7 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public double Increment
|
public double Increment
|
||||||
{
|
{
|
||||||
get => (double) GetValue(IncrementProperty);
|
get => (double)GetValue(IncrementProperty);
|
||||||
set => SetValue(IncrementProperty, value);
|
set => SetValue(IncrementProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int? DecimalPlaces
|
public int? DecimalPlaces
|
||||||
{
|
{
|
||||||
get => (int?) GetValue(DecimalPlacesProperty);
|
get => (int?)GetValue(DecimalPlacesProperty);
|
||||||
set => SetValue(DecimalPlacesProperty, value);
|
set => SetValue(DecimalPlacesProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,7 +320,7 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal bool ShowUpDownButton
|
internal bool ShowUpDownButton
|
||||||
{
|
{
|
||||||
get => (bool) GetValue(ShowUpDownButtonProperty);
|
get => (bool)GetValue(ShowUpDownButtonProperty);
|
||||||
set => SetValue(ShowUpDownButtonProperty, value);
|
set => SetValue(ShowUpDownButtonProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
public bool IsError
|
public bool IsError
|
||||||
{
|
{
|
||||||
get => (bool) GetValue(IsErrorProperty);
|
get => (bool)GetValue(IsErrorProperty);
|
||||||
set => SetValue(IsErrorProperty, value);
|
set => SetValue(IsErrorProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
public string ErrorStr
|
public string ErrorStr
|
||||||
{
|
{
|
||||||
get => (string) GetValue(ErrorStrProperty);
|
get => (string)GetValue(ErrorStrProperty);
|
||||||
set => SetValue(ErrorStrProperty, value);
|
set => SetValue(ErrorStrProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,7 +359,7 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
public TextType TextType
|
public TextType TextType
|
||||||
{
|
{
|
||||||
get => (TextType) GetValue(TextTypeProperty);
|
get => (TextType)GetValue(TextTypeProperty);
|
||||||
set => SetValue(TextTypeProperty, value);
|
set => SetValue(TextTypeProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -371,7 +371,7 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
public bool ShowClearButton
|
public bool ShowClearButton
|
||||||
{
|
{
|
||||||
get => (bool) GetValue(ShowClearButtonProperty);
|
get => (bool)GetValue(ShowClearButtonProperty);
|
||||||
set => SetValue(ShowClearButtonProperty, value);
|
set => SetValue(ShowClearButtonProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -386,7 +386,7 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsReadOnly
|
public bool IsReadOnly
|
||||||
{
|
{
|
||||||
get => (bool) GetValue(IsReadOnlyProperty);
|
get => (bool)GetValue(IsReadOnlyProperty);
|
||||||
set => SetValue(IsReadOnlyProperty, value);
|
set => SetValue(IsReadOnlyProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user