You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
On WPF, if the window is closed while an animation is running, then a NullReferenceException will be thrown.
Steps to Reproduce
Start an animation using one of the ScaleTo, TranslateTo, etc. extensions.
Close the window while the animation is active
Expected Behavior
The application exits without issue.
Actual Behavior
A NullReferenceException is thrown:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Xamarin.Forms.Platform.WPF
StackTrace:
at Xamarin.Forms.Platform.WPF.WPFPlatformServices.BeginInvokeOnMainThread(Action action)
at Xamarin.Forms.Internals.Ticker.Remove(Int32 handle)
at Xamarin.Forms.Tweener.Finalize()
Application has a long-running animation that activates when the window appears, so just close the window after it opens to reproduce the issue. UWP project is also included for comparison.
The text was updated successfully, but these errors were encountered:
Description
On WPF, if the window is closed while an animation is running, then a NullReferenceException will be thrown.
Steps to Reproduce
Expected Behavior
The application exits without issue.
Actual Behavior
A NullReferenceException is thrown:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Xamarin.Forms.Platform.WPF
StackTrace:
at Xamarin.Forms.Platform.WPF.WPFPlatformServices.BeginInvokeOnMainThread(Action action)
at Xamarin.Forms.Internals.Ticker.Remove(Int32 handle)
at Xamarin.Forms.Tweener.Finalize()
Basic Information
Version with issue: v4.1.0
IDE: VS 2019
Platform Target Frameworks:
Reproduction Link
AnimationOnExitDemo.zip
Application has a long-running animation that activates when the window appears, so just close the window after it opens to reproduce the issue. UWP project is also included for comparison.
The text was updated successfully, but these errors were encountered: