Exemplo n.º 1
0
        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
            }
                );
        }
Exemplo n.º 2
0
 private PagedControlAccessor(IPagedControl container)
 {
     this.container = container;
 }
Exemplo n.º 3
0
 public PagedControlNavigationArguments(IPagedControl container, object parameter)
 {
     this.Parameter = parameter;
     this.Container = container;
 }