IsBusy is the public property in ViewModel.
With this implementation, I am sporadically getting below exception and system crashes:
System.Runtime.InteropServices.COMException:
at System.Windows.Media.Imaging.RenderTargetBitmap.FinalizeCreation (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.Imaging.RenderTargetBitmap..ctor (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at WpfAnimatedGif.ImageBehavior.MakeFrame (WpfAnimatedGif, Version=1.4.14.0, Culture=neutral, PublicKeyToken=null)
at WpfAnimatedGif.ImageBehavior.GetAnimation (WpfAnimatedGif, Version=1.4.14.0, Culture=neutral, PublicKeyToken=null)
at WpfAnimatedGif.ImageBehavior.InitAnimationOrImage (WpfAnimatedGif, Version=1.4.14.0, Culture=neutral, PublicKeyToken=null)
at WpfAnimatedGif.ImageBehavior.AnimatedSourceChanged (WpfAnimatedGif, Version=1.4.14.0, Culture=neutral, PublicKeyToken=null)
at System.Windows.DependencyObject.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.OnPropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.NotifyPropertyChange (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.UpdateEffectiveValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.InvalidateProperty (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.StyleHelper.InvalidateDependents (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.StyleHelper.OnBindingValueInStyleChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Data.BindingExpressionBase.ChangeValue (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Data.BindingExpression.TransferValue (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Data.BindingExpression.ScheduleTransfer (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.Data.ClrBindingWorker.NewValueAvailable (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Data.BindingExpression.HandlePropertyInvalidation (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Data.BindingExpression.OnPropertyInvalidation (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependentList.InvalidateDependents (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.NotifyPropertyChange (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.UpdateEffectiveValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.TreeWalkHelper.InvalidateTreeDependentProperty (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.TreeWalkHelper.InvalidateTreeDependentProperties (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.InvalidateTreeDependentProperties (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.OnAncestorChangedInternal (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.TreeWalkHelper.OnAncestorChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.PrePostDescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkLogicalChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.IterateChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.PrePostDescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkLogicalChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.IterateChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.PrePostDescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkLogicalChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.IterateChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.PrePostDescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkLogicalChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.IterateChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.PrePostDescendentsWalker`1._VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.VisitNode (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkLogicalChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.IterateChildren (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DescendentsWalker`1.StartWalk (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at MS.Internal.PrePostDescendentsWalker`1.StartWalk (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.TreeWalkHelper.InvalidateOnTreeChange (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.OnVisualParentChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.Visual.FireOnVisualParentChanged (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.Visual.RemoveVisualChild (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.set_TemplateChild (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.StyleHelper.ClearGeneratedSubTree (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.StyleHelper.DoTemplateInvalidations (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.StyleHelper.UpdateTemplateCache (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Controls.ContentPresenter.OnTemplateChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.OnPropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.NotifyPropertyChange (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.UpdateEffectiveValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.SetValueCommon (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Controls.ContentPresenter.OnContentChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.FrameworkElement.OnPropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.NotifyPropertyChange (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.UpdateEffectiveValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.SetValueCommon (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.DependencyObject.SetValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at DevExpress.Xpf.WindowsUI.Internal.ViewPresenter.FinishContentChanging (DevExpress.Xpf.Controls.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a)
at DevExpress.Xpf.WindowsUI.Internal.ViewPresenter.OnStoryboardCompleted (DevExpress.Xpf.Controls.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a)
at System.Windows.Media.Animation.Clock.FireEvent (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.Animation.Clock.RaiseAccumulatedEvents (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.Animation.TimeManager.RaiseEnqueuedEvents (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.Animation.TimeManager.Tick (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.MediaContext.RenderMessageHandlerCore (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)