Hey there,
I'm trying to change the value of the SfBusyIndicatior.AnimationType depending on Values of a Combobox. So the next time the busyindicator is shown it should play the animation selected by the value of the combobox.
This works if the Combobox has a default value, otherwise the busyindicator is initialized with the flower animation as default. So the first time setting the animation type on program startup sets the correct value.
I've tried to change the AnimationType value by XAML binding with a converter and via code behind. Both with the same result. The property is set correctly but when the busyindicator is displayed it shows 2 animations at the same time. The animation set on program startup and the newly selected animation.
Setting the animationtype in code behind I tried different ways
- setting the property directly via busyindicator.AnimationType = ....
- setting the property directly and calling busyindicator.InvalidateVisual();
- calling busyindicator.clearValue(SfBusyIndicator.AnimationType) and setting the property directly
- calling busyindicatior.InvalidateProperty(SfBusyIndicator.AnimationType) and setting the property directly
- setting the property calling busyindicator.SetValue(SfBusyIndicator.AnimationType, newValue)
- setting the property calling busyindicator.SetCurrentValue(SfBusyIndicator.AnimationType, newValue)
- Setting the busyindicator control of the mainwindow to busyindicator = new SfBusyIndicator() and then setting the AnimationType property directly
Everything ends in the same result that 2 animations are shown simultaniously at the same position.
Any help or hint is highly appreciated. Thanks.