public void ShowScreenWithPath(ScreenPaths path) { if (!screens.ContainsKey(path)) { return; } foreach (var screenViewModel in screens) { screenViewModel.Value.IsActive = false; } screens[path].IsActive = true; }
public void AddScreenWithPath(BaseViewModel baseModel, ScreenPaths path) { screens.Add(path, baseModel); baseModel.Navigator = this; baseModel.IsActive = false; }