public void SwitchViewType(EnergyViewType viewType) { ViewButton.Trigger(); TimeManager.FlashPause(); ViewButton.SelectItem(MenuItemDictionary[viewType]); //CurrentViewType = viewType; }