fixed a bug of WaveProgressBar

[#I295DS](https://gitee.com/handyorg/HandyControl/issues/I295DS)
This commit is contained in:
NaBian committed 2021-02-05 22:48:14 +08:00
1 parent 0e6bb9285f
commit 83a44aa676
1 file changed
+6 -5
@@ -29,16 +29,17 @@ namespace HandyControl.Controls
static WaveProgressBar()
{
FocusableProperty.OverrideMetadata(typeof(WaveProgressBar),
new FrameworkPropertyMetadata(ValueBoxes.FalseBox));
MaximumProperty.OverrideMetadata(typeof(WaveProgressBar),
new FrameworkPropertyMetadata(ValueBoxes.Double100Box));
FocusableProperty.OverrideMetadata(typeof(WaveProgressBar), new FrameworkPropertyMetadata(ValueBoxes.FalseBox));
MaximumProperty.OverrideMetadata(typeof(WaveProgressBar), new FrameworkPropertyMetadata(ValueBoxes.Double100Box));
}
protected override void OnMinimumChanged(double oldMinimum, double newMinimum) => UpdateWave(Value);
protected override void OnMaximumChanged(double oldMaximum, double newMaximum) => UpdateWave(Value);
protected override void OnValueChanged(double oldValue, double newValue)
{
base.OnValueChanged(oldValue, newValue);
UpdateWave(newValue);
}