Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

await DisplayActionSheet(...) return null immediately

I change the MainPage after run App. After that any calls await DisplayActionSheet(...) and await DisplayAlert(...) return null immediately. But only on WindowsPhone. Do You know right way to change MainPage? The source with problem https://github.com/devcatch/MasterDetailAndActionSheet

like image 272
catch Avatar asked Aug 21 '26 01:08

catch


1 Answers

I would have thought that you would have to assign the response of the DisplayActionSheet to a variable before returning e.g.

Instead of:

return await DisplayActionSheet...

Use:

var response = await DisplayActionSheet...
return response;
like image 170
JordanMazurke Avatar answered Aug 23 '26 01:08

JordanMazurke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!