public void RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { switch (indexPath.Section) { case 0: //MMDrawerSectionViewSelection MMExampleCenterTableViewController center = new MMExampleCenterTableViewController (); UINavigationController nav = new UINavigationController (center); if (indexPath.Row % 2 == 0) { MMDrawerController_UIViewController.Mm_drawerController.CenterViewController = nav; MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerAnimated (true, null); } else { MMDrawerController_UIViewController.Mm_drawerController.CenterViewController = nav; MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerAnimated (true, null); } break; case 1: //MMDrawerSectionDrawerWidth break; case 2: //MMDrawerSectionShadowToggle MMDrawerController_UIViewController.Mm_drawerController.ShowsShadow = MMDrawerController_UIViewController.Mm_drawerController.ShowsShadow; tableView.ReloadSections (NSIndexSet.FromIndex (indexPath.Section), UITableViewRowAnimation.None); break; case 3: //MMDrawerSectionOpenDrawerGestures switch (indexPath.Row) { case 0: MMDrawerController_UIViewController.Mm_drawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.PanningNavigationBar; break; case 1: MMDrawerController_UIViewController.Mm_drawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.PanningCenterView; break; case 2: MMDrawerController_UIViewController.Mm_drawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.BezelPanningCenterView; break; default: break; } tableView.ReloadRows (new NSIndexPath[]{ indexPath }, UITableViewRowAnimation.None); break; case 4: //MMDrawerSectionCloseDrawerGestures switch (indexPath.Row) { case 0: MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.PanningNavigationBar; break; case 1: MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.PanningCenterView; break; case 2: MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.BezelPanningCenterView; break; case 3: MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.TapNavigationBar; break; case 4: MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.TapCenterView; break; case 5: MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.PanningDrawerView; break; default: break; } tableView.ReloadRows (new NSIndexPath[]{ indexPath }, UITableViewRowAnimation.None); break; case 5: //MMDrawerSectionCenterHiddenInteraction tableView.ReloadRows (new NSIndexPath[]{ indexPath }, UITableViewRowAnimation.None); break; case 6: //MMDrawerSectionStretchDrawer MMDrawerController_UIViewController.Mm_drawerController.ShouldStretchDrawer = !MMDrawerController_UIViewController.Mm_drawerController.ShouldStretchDrawer; tableView.ReloadSections (NSIndexSet.FromIndex (indexPath.Section), UITableViewRowAnimation.None); break; default: break; } tableView.SelectRow (indexPath, false, UITableViewScrollPosition.None); tableView.DeselectRow (indexPath, true); }