/// <summary>
 /// Clear the states held by this model
 /// </summary>
 public void OnClear()
 {
     ActionMode = false;
     CheckedObjects.Clear();
     LastGroupOpened = -1;
     ExpandedGroups.Clear();
 }
Esempio n. 2
0
        private void HeaderTapped(GroupViewModel item)
        {
            try
            {   //Search for the position
                int selectedIndex = ExpandedGroups.IndexOf(item);


                AllGroups[selectedIndex].Expanded = !AllGroups[selectedIndex].Expanded;
                UpdateListContent();
            }
            catch (Exception e)
            {
                //Application.Current.MainPage.DisplayAlert("Error","Error:"+e,"OK");
            }
        }