monodroid-samples icon indicating copy to clipboard operation
monodroid-samples copied to clipboard

Set shared checkable behavior across all groups in NavigationView in Cheesesquare

Open jorgenstorlie opened this issue 10 years ago • 0 comments

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?

jorgenstorlie avatar Oct 23 '15 13:10 jorgenstorlie