private void SetMenuSelection(int pos) { int parentPos = drawerAdapter.GetParentPosition(pos - 1); DrawerListView.ClearChoices(); if (parentPos > -1) { DrawerListView.ChoiceMode = (ChoiceMode)ListView.ChoiceModeMultiple; DrawerListView.SetItemChecked(parentPos, true); DrawerListView.SetItemChecked(pos, true); } else { DrawerListView.ChoiceMode = (ChoiceMode)ListView.ChoiceModeSingle; DrawerListView.SetItemChecked(pos, true); } }
private void SetMenuSelection(int pos) { DrawerListView.ClearChoices(); DrawerListView.ChoiceMode = (ChoiceMode)ListView.ChoiceModeSingle; DrawerListView.SetItemChecked(pos, true); }