示例#1
0
        private IoCResolver GetResolver()
        {
            var resolver = new IoCResolver();

            resolver.BuildContainer(new Assembly[]
            {
                typeof(App).GetTypeInfo().Assembly,
                typeof(Shared.NewsPickerShared).GetTypeInfo().Assembly,
                typeof(XamarinToolkit.XamarinToolkit).GetTypeInfo().Assembly
            });

            return(resolver);
        }
示例#2
0
        public App()
        {
            InitializeComponent();

            IoCResolver.BuildContainer(new Assembly[] {
                typeof(App).GetTypeInfo().Assembly,
            });

            MainPage = new NavigationPage(new MainView())
            {
                BarBackgroundColor = Color.FromHex("#3f51b5"),
                BarTextColor       = Color.White
            };
        }