monodroid-samples
monodroid-samples copied to clipboard
Set shared checkable behavior across all groups in NavigationView in Cheesesquare
In the Cheesesquare sample only items in the first group is checked in the NavigationView. I want to make items in second group checked too.
something like this: http://howtobox.org/how-to-set-shared-checkable-behavior-across-all-groups-in-navigationview/
IMenu m = navigationView.Menu;
for (int i = 0; i <= m.Size () - 1; i++) {
IMenuItem mi = m.GetItem (i);
if (!(mi == e.MenuItem))
{
mi.SetCheckable (false);
}
}
e.MenuItem.SetCheckable (true);
e.MenuItem.SetChecked (true);
does this make sense?
Can you add this this too the sample?