public static void Navigate <T, A>(IPagedControl container, [DisallowNull] A parameter) where T : IPagedControlContent <A> { if (container.Content != container.ContentFrame) { throw new ProgrammerError("IPagedItemContainer cannot have custom content"); } _ = container.ContentFrame.NavigateToType( typeof(T), new PagedControlNavigationArguments(container, parameter), new FrameNavigationOptions { IsNavigationStackEnabled = false } ); }
private PagedControlAccessor(IPagedControl container) { this.container = container; }
public PagedControlNavigationArguments(IPagedControl container, object parameter) { this.Parameter = parameter; this.Container = container; }