Example #1
0
        private void onNavigateBack(object sender, Toolbar.NavigationClickEventArgs e)
        {
            var toolbar = FindViewById <Toolbar>(Resource.Id.Toolbar);

            toolbar.NavigationClick -= onNavigateBack;

            ViewModel.CloseWithDefaultResult();
        }
        private void OnBackToToolbarClick(object sender, Toolbar.NavigationClickEventArgs e)
        {
            ViewModel.CancelSearchCommand.Execute(null);

            _toolbarInSearchState.Visibility = ViewStates.Gone;
            _toolbar.Visibility = ViewStates.Visible;

            HideKeyboard();
        }
 void OnModalToolbarNavigationClick(object sender, Toolbar.NavigationClickEventArgs e)
 {
     if (Element.CurrentPage is IModalPage modalPage)
     {
         modalPage.Dismiss();
     }
     else
     {
         Element.SendBackButtonPressed();
     }
 }
        private void Native_NavigationClick(object sender, Toolbar.NavigationClickEventArgs e)
        {
            var navigationCommand = Element.GetValue(NavigationCommandProperty) as AppBarButton;

            if (navigationCommand != null)
            {
                navigationCommand.RaiseClick();
            }
            else
            {
                SystemNavigationManager.GetForCurrentView().RequestBack();
            }
        }
Example #5
0
 private void onNavigateBack(object sender, Toolbar.NavigationClickEventArgs e)
 {
     Finish();
 }
 private void OnBackClick(object sender, Toolbar.NavigationClickEventArgs e)
 {
     ViewModel.CloseCommand.Execute(null);
 }
Example #7
0
 private void onNavigateBack(object sender, Toolbar.NavigationClickEventArgs e)
 {
     ViewModel.BackCommand.Execute();
 }
 private void HandleNavigationPressed(object sender, Toolbar.NavigationClickEventArgs e)
 {
     ChildFragmentManager.PopBackStackImmediate();
 }
 private void Toolbar_NavigationClick(object sender, Toolbar.NavigationClickEventArgs e) => OnBackPressed();