Ejemplo n.º 1
0
        public App()
        {
            var registry = new SplatDependencyRegistry();

            IoC = new SplatDependencyResolver();

            RegisterDependencies(registry);

            InitializeComponent();

            Xamarin.Forms.Svg.SvgImageSource.RegisterAssembly();

            MainPage = new AppShell();
        }
Ejemplo n.º 2
0
        public App()
        {
            var registry = new SplatDependencyRegistry();

            IoC = new SplatDependencyResolver();

            RegisterDependencies(registry);

            InitializeComponent();

            Xamarin.Forms.Svg.SvgImageSource.RegisterAssembly();

            MainPage = new AppShell();

            Application.Current.RequestedThemeChanged += (s, a) =>
            {
                // Respond to the theme change if setting is system theme
            };
        }