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

Set Content to ConvertPageToUIElement twice and DisplayAlert throws exception on WP (emulator)

$
0
0

Setting

Content = page1.ConvertPageToUIElement(this);

...
Content = page2.ConvertPageToUIElement(this);

and then

page2.DisplayAlert(...); // this throws an un-handled exception (if you await it the exception is thrown when the alert is dismissed by tapping one of the alert buttons)

on Windows Phone emulator.

This doesn't happen on Android emulator(s) with SetPage though (instead of ConvertPageToUIElement call).

Could anyone suggest a solution?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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