Beispiel #1
0
        public static IHostBuilder ConfigureUniversal(
            this IHostBuilder builder, Type mainpage, Type shellViewModel,
            Action <IUniversalBuilder> configure = null,
            bool enableNavigation = true)
        {
            var ubuilder = new UniversalBuilder(builder, enableNavigation, mainpage, shellViewModel);

            configure?.Invoke(ubuilder);
            ubuilder.Build();
            return(builder);
        }
Beispiel #2
0
        public static IHostBuilder ConfigureUniversal <TShell, TShellViewModel>(
            this IHostBuilder builder,
            Action <IUniversalBuilder> configure = null,
            bool enableNavigation = true)
            where TShell : Page
        {
            var ubuilder = new UniversalBuilder <TShell, TShellViewModel>(builder, enableNavigation);

            configure?.Invoke(ubuilder);
            ubuilder.Build();
            return(builder);
        }