White Screen Issue while navigating in Xamarin forms Prism MasterDetails Page

XamZXamZ INMember ✭✭

White Screen Issue while navigating in Xamarin forms Prism MasterDetails Page

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    What does the white screen look like?
    Post more details about your issue and a sample will be better.

  • XamZXamZ INMember ✭✭
    edited March 13

    While navigating to one page to another page before display white blank screen then load UI, right now am using Xamarin.Forms with Prism

    Index : MasterDetails Page.

    LoginCommand = new DelegateCommand(OnLoginCommandExecuted, LoginCommandCanExecute)
    .ObservesProperty(() => UserName)
    .ObservesProperty(() => Password);

    private async void OnLoginCommandExecuted()
    {

            IsBusy = true;
            try
            {          
                if (CrossConnectivity.Current.IsConnected)
                {
                    var authenticationResponse = await _authenticationService.LoginAsync(UserName, Password);
                    if (authenticationResponse.status == "Success")
                    {
                        await NavigationService.NavigateAsync("/Index/NavigationPage/HomePage");
                        UserDialogs.Instance.HideLoading();
                    }
                    else
                    {
                        ------------------------
                    }
                }
                else
                {
                   -----------------------
                }
                UserDialogs.Instance.HideLoading();
            }
            catch (Exception)
            {
                UserDialogs.Instance.HideLoading();
                UserDialogs.Instance.Alert("Something went Wrong,Please retry after sometime.", "Sorry", "Ok");
            }
            IsBusy = false;
        }
    
  • LandLuLandLu Member, Xamarin Team Xamurai

    @XamZ Can't capture more information from your code. You'd better share a sample to help us reproduce this issue.

Sign In or Register to comment.