private void AddToHistory(SimpleViewModel navObj) { if (NavigationHistory.Count >= MaxHistoryObjects) { NavigationHistory.RemoveAt(0); } NavigationHistory.Add(navObj); }
/// <summary> /// Navigates to the controller /// </summary> /// <typeparam name="T">A type of the controller to navigate</typeparam> public void Navigate <T>() { Controller current = controllerProvider.GetController <T>(); current.Initialize(); ShowHide(history.GetCurrent(), current); history.Add(current); }