public static IPageLink Pop(this IPageLink pageLink, int popCount = 1) { var page = ".."; for (var i = 0; i < popCount; ++i) { pageLink.AppendSegment(page); } return(pageLink); }
public static IPageLink Push <TViewModel>(this IPageLink pageLink, object?parameter = null) where TViewModel : BaseViewModel { var page = ToPageName <TViewModel>(); return(pageLink.AppendSegment(page, typeof(TViewModel), parameter)); }