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

PRISM / NavigateAsync not working within await

$
0
0

I am using Dapper to connect to a SQL-Server. When I start my App I want to make sure that there is a connection before I open my Page.
Everything works perfectly except the Page is not showing or is kind of "Empty".
The result ==result.Success, no errors are shown and all steps are executed in the ViewModel of my Page. And there are also no errors in the Constructor of the "CodeBehind" (InitializeComponent();)

Without the (if(await...) the Page is opening.

if (await DapperEngine.CheckConnection(Prefs.ConnectionString) == true)
{
    result = await NavigationService.NavigateAsync("NavigationPage/MainView");
    if (result.Success == false)
    {

    }
}

Any Ideas ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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