Пример #1
0
 private void ResetTopPopupPage(object sender, Rg.Plugins.Popup.Events.PopupNavigationEventArgs e)
 {
     using var popupStack = s_popupNavigation.PopupStack.GetEnumerator();
     while (popupStack.MoveNext())
     {
         TopPopupPage = popupStack.Current;
     }
 }
        private async void PopupNavigation_Popped(object sender, Rg.Plugins.Popup.Events.PopupNavigationEventArgs e)
        {
            if (e.Page is OcrFormatsPage)
            {
                // This code handles a case where the user tapped on "SHARE" option and when the formats popup showed up
                // he/she tapped outside the popup to close it.
                await HideOutputFormatsLayout();

                PopupNavigation.Instance.Popped -= PopupNavigation_Popped;
            }
        }
 private void Instance_Popped(object sender, Rg.Plugins.Popup.Events.PopupNavigationEventArgs e)
 {
     if (_viewModel.CompletionSource != null)
     {
         if (_selectedItem != null)
         {
             _viewModel.CompletionSource.TrySetResult(_selectedItem.Label);
         }
         else
         {
             _viewModel.CompletionSource.TrySetResult("Cancel");
         }
     }
 }
Пример #4
0
 private void RestrictPopAbility(object sender, Rg.Plugins.Popup.Events.PopupNavigationEventArgs e)
 {
     TopPopupPage = null;
 }
Пример #5
0
 async void Instance_Popping(object sender, Rg.Plugins.Popup.Events.PopupNavigationEventArgs e)
 {
     await ReloadFriends();
 }