Beispiel #1
0
 void OnDrawerStateChanged(object?sender, DrawerLayout.DrawerStateChangedEventArgs e)
 {
     if (e.NewState == DrawerLayout.StateIdle && VirtualView.FlyoutBehavior == FlyoutBehavior.Flyout)
     {
         VirtualView.IsPresented = DrawerLayout.IsDrawerVisible(_flyoutView);
     }
 }
Beispiel #2
0
 public override void OnBackPressed()
 {
     if (drawer.IsDrawerVisible(GravityCompat.Start))
     {
         drawer.CloseDrawers();
     }
     else
     {
         base.OnBackPressed();
     }
 }
 public void ImageClickHandle(object sender, EventArgs e)
 {
     if (drawer.IsDrawerVisible(GravityFlags.Start))
     {
         drawer.CloseDrawer(GravityFlags.Start);
     }
     else
     {
         drawer.OpenDrawer(GravityFlags.Start);
     }
 }