private void DoMenuSelectionWork(int index, object navigationData) { if (navigationData != null) { var item = AppMenus.FirstOrDefault(x => x.MenuName == navigationData.ToString()); if (item != null) { index = AppMenus.IndexOf(item); } } AppMenus.ForEach(x => x.IsSelected = false); SelectedMenu = AppMenus[index]; SelectedMenu.IsSelected = true; SelectedMenu.NavigationAction.Invoke(); }
private void NavigateMenu(AppMenuItem obj) { obj.NavigationAction.Invoke(); AppMenus.ForEach(x => x.IsSelected = false); obj.IsSelected = true; }