Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Display Alert crashes on Windows Phone

$
0
0

Hello,

I tried to call DisplayAlert from Forms Page:

got this exception on Windows phone:

**{System.Windows.ApplicationUnhandledExceptionEventArgs}

An attempt was made to transition a task to a final state when it had already completed.**

StackTrace:
at System.Threading.Tasks.TaskCompletionSource`1.SetResult(TResult result)
at Xamarin.Forms.AlertArguments.SetResult(Boolean result)
at Xamarin.Forms.Platform.WinPhone.Platform.<>c__DisplayClass16.<.ctor>b__c(Object o, DismissedEventArgs args)
at Microsoft.Phone.Controls.CustomMessageBox.Dismiss(CustomMessageBoxResult source, Boolean useTransition)
at Microsoft.Phone.Controls.CustomMessageBox.RightButton_Click(Object sender, RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>