Exemplo n.º 1
0
        private async Task TransitionDefault(IPanelViewController hideController, IPanelViewController showController)
        {
            Task hideTask = null;
            Task showTask = null;

            if (hideController != null)
            {
                hideTask = hideController.HideAsync();
            }

            if (showController != null)
            {
                showController.SetParentViewContainer(container);
                showTask = showController.ShowAsync();
            }

            if (hideTask != null)
            {
                await hideTask.ConfigureAwait(true);
            }

            if (showTask != null)
            {
                await showTask.ConfigureAwait(true);
            }
        }
Exemplo n.º 2
0
 private async Task LoadView(IPanelViewController controller)
 {
     if (controller.IsViewLoaded)
     {
         return;
     }
     controller.SetParentViewContainer(container);
     await controller.LoadViewAsync();
 }