Skip to content

Commit

Permalink
Fix #393
Browse files Browse the repository at this point in the history
Fix #393
  • Loading branch information
seedtyx authored Jun 8, 2020
1 parent f4d9494 commit c9920ba
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private static object CoerceValue(DependencyObject d, object basevalue)
{
ctl.Value = maximum;
}

ctl.SetText();
return num > maximum ? maximum : num;
}

Expand All @@ -220,11 +220,7 @@ private static object CoerceValue(DependencyObject d, object basevalue)
public double Value
{
get => (double)GetValue(ValueProperty);
set
{
SetValue(ValueProperty, value);
SetText();
}
set => SetValue(ValueProperty, value);
}

/// <summary>
Expand Down

0 comments on commit c9920ba

Please sign in to comment.