Пример #1
0
        public static Page CreatePage(Action <RxComponent> componentInitializer = null)
        {
            var host = new RxPageHost <T>(componentInitializer);

            host.Run();
            return(host._componentPage);
        }
Пример #2
0
        public static Page CreatePage()
        {
            var host = new RxPageHost <T>();

            host.Run();
            return(host.ContainerPage);
        }
        public static async Task <Page> PushModalAsync <T>(this INavigation navigation, bool animated, Action <RxComponent> componentInitializer = null) where T : RxComponent, new()
        {
            var page = RxPageHost <T> .CreatePage(componentInitializer);

            await navigation.PushModalAsync(page, animated);

            return(page);
        }
Пример #4
0
        public static async Task <Page> PushModalAsync <T, P>(this INavigation navigation, bool animated, Action <P> propsInitializer) where T : RxComponent, new() where P : class, IProps, new()
        {
            var page = RxPageHost <T, P> .CreatePage(propsInitializer);

            await navigation.PushModalAsync(page, animated);

            return(page);
        }
Пример #5
0
        public static async Task <Page> PushModalAsync <T>(this INavigation navigation) where T : RxComponent, new()
        {
            var page = RxPageHost <T> .CreatePage();

            await navigation.PushModalAsync(page);

            return(page);
        }
Пример #6
0
        public static async Task <Page> PushAsync <T, P>(this INavigation navigation, P props) where T : RxComponent, new() where P : class, IProps, new()
        {
            var page = RxPageHost <T, P> .CreatePage();

            await navigation.PushAsync(page);

            return(page);
        }