Fix #393
This commit is contained in:
seedtyx authored and GitHub committed 2020-06-08 16:04:22 +08:00
1 parent f4d949460a
commit c9920ba951
1 file changed
+2 -6
@@ -210,7 +210,7 @@ namespace HandyControl.Controls
{ {
ctl.Value = maximum; ctl.Value = maximum;
} }
ctl.SetText();
return num > maximum ? maximum : num; return num > maximum ? maximum : num;
} }
@@ -220,11 +220,7 @@ namespace HandyControl.Controls
public double Value public double Value
{ {
get => (double)GetValue(ValueProperty); get => (double)GetValue(ValueProperty);
set set => SetValue(ValueProperty, value);
{
SetValue(ValueProperty, value);
SetText();
}
} }
/// <summary> /// <summary>