Пример #1
0
 private async void OnNavigationClick(object sender, AWV7.Toolbar.NavigationClickEventArgs e)
 {
     if (Element?.CurrentPage is AContentPage aPage &&
         aPage.InvokeNavigationClick())
     {
         // NavigationClick is intercepted, do nothing and return
         return;
     }
Пример #2
0
 private static void Toolbar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
 {
     if (Fragment != null)
     {
         Context.SupportFragmentManager.BeginTransaction().Remove(Fragment).Commit();
         Context.SupportFragmentManager.PopBackStack();
         Fragment = null;
     }
 }
Пример #3
0
 private void BottomAppBar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
 {
     if (drawerLayout.IsDrawerOpen(drawerLayout))
     {
         drawerLayout.CloseDrawer(drawerLayout, true);
     }
     else
     {
         drawerLayout.OpenDrawer(drawerLayout, true);
     }
 }
Пример #4
0
        private void Toolbar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
        {
            var mainActivity = Activity as MainActivity;

            if (!mainActivity.Title.Equals("Main Activity"))
            {
                mainActivity?.OnBackPressed();
            }
            else
            {
                mainActivity.ShowDrawLayout();
            }
        }
Пример #5
0
        public virtual void Toolbar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
        {
            var existingFragment = GetOverFragment() as NewCardRecyclerViewFragment;

            if (existingFragment != null)
            {
                var saved = existingFragment.SaveCardIfPossible();
                if (!saved)
                {
                    return;
                }
            }
            OnBackPressed();
        }
Пример #6
0
 protected override void Toolbar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
 {
     OnBackPressed();
 }
Пример #7
0
        private void navigateback(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
        {
            var intent = new Intent(this, typeof(MainActivity));

            StartActivity(intent);
        }
Пример #8
0
 private void Navigation_Click(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
 {
     Finish();
 }
Пример #9
0
 private void MainToolbar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
 {
     string s = "";
 }
 private void Toolbar_NavigationClick(object sender, Android.Support.V7.Widget.Toolbar.NavigationClickEventArgs e)
 {
     //var ar  = (BindableObject)sender;
     //var vm = (BusViewModel)ar.BindingContext;
     _viewModel.GoBack();
 }