I have a requirement to show busy/progress dialog while VM is busy for a prolonged period of time. My preference is not to use code behind. After some research I put together a sample that uses XamDialogWindow with WindowState property bound to VM’s IsBusy property. The Dialog window may potentially contain progress indicator, etc. I have uploaded this sample just in case anyone else is interested.
There is some peculiar behaviour – If I make XamDialogWindow modal to take an advantage of Modal Background features the animation gets broken.
Any suggestins?
Regards
Boris
Complete working example attached with the changes your developers suggested as well as with some changes related to the window position. Hopefully someone would find it useful
Hello ,
I have received an answer from our development team regarding your issue and I can suggest you set the ‘IsAdditive’ property of the DoubleAnimationUsingKeyFrames to ‘True’ like:
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" RepeatBehavior="Forever" IsAdditive="True">
This way I believe that you will get the effect that you are looking for.
If you need any further assistance on this matter, feel free to ask.
Thank you Yanko. I'll stay put
Hello,
I have logged this behavior with our developers in our tracking system, with an issue ID of 116103. I have also created a support ticket on your behalf with number CAS-94725-6P203R in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.
Hi Yanko
Thank you for looking into it.
If you run a sample as is you will see the animation working just fine. To reproduce my problem set IsModal on the XamDialogWindow to true. Run the sample again. First time the "Please Wait" dlg comes up you will see the animation working as usual. Then after the timer event in VM the dlg disappears (as it should). After the next timer event the dlg appears again with animation becoming jerky and after two more timer events the animation stops completely. Please note that this behaviour can be observed if XamDialogWindow is modal.
Hope you can reproduce it. If not I'll post a video.
Cheers