public MainWindowViewModel() { AppControlManager.AppPages.ForEach(c => ControlList.Add(c)); if (ControlList != null) { SelectedControl = ControlList.FirstOrDefault(); } }