fixed a bug of WaveProgressBar
[#I295DS](https://gitee.com/handyorg/HandyControl/issues/I295DS)
This commit is contained in:
1 parent
0e6bb9285f
commit
83a44aa676
1 file changed
+6
-5
@@ -29,16 +29,17 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
static WaveProgressBar()
|
static WaveProgressBar()
|
||||||
{
|
{
|
||||||
FocusableProperty.OverrideMetadata(typeof(WaveProgressBar),
|
FocusableProperty.OverrideMetadata(typeof(WaveProgressBar), new FrameworkPropertyMetadata(ValueBoxes.FalseBox));
|
||||||
new FrameworkPropertyMetadata(ValueBoxes.FalseBox));
|
MaximumProperty.OverrideMetadata(typeof(WaveProgressBar), new FrameworkPropertyMetadata(ValueBoxes.Double100Box));
|
||||||
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)
|
protected override void OnValueChanged(double oldValue, double newValue)
|
||||||
{
|
{
|
||||||
base.OnValueChanged(oldValue, newValue);
|
base.OnValueChanged(oldValue, newValue);
|
||||||
|
|
||||||
UpdateWave(newValue);
|
UpdateWave(newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user