protected BitApplication(IPlatformInitializer?platformInitializer = null)
            : base(platformInitializer)
        {
            _eventAggregator = new Lazy <IEventAggregator>(() =>
            {
                return(Container.Resolve <IEventAggregator>());
            }, isThreadSafe: true);

            if (MainPage == null)
            {
                MainPage = new ContentPage {
                    Title = "DefaultPage"
                }
            }
            ;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="PrismApplication" /> with a <see cref="IPlatformInitializer" />.
 /// Used when there are specific types that need to be registered on the platform.
 /// Also determines whether to set the <see cref="DependencyResolver" /> for resolving Renderers and Platform Effects.
 /// </summary>
 /// <param name="platformInitializer">The <see cref="IPlatformInitializer"/>.</param>
 /// <param name="setFormsDependencyResolver">Should <see cref="PrismApplication" /> set the <see cref="DependencyResolver" />.</param>
 protected PrismApplication(IPlatformInitializer?platformInitializer, bool setFormsDependencyResolver)
     : base(platformInitializer, setFormsDependencyResolver)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of <see cref="PrismApplication" /> with a <see cref="IPlatformInitializer" />.
 /// Used when there are specific types that need to be registered on the platform.
 /// </summary>
 /// <param name="platformInitializer">The <see cref="IPlatformInitializer"/>.</param>
 protected PrismApplication(IPlatformInitializer?platformInitializer)
     : base(platformInitializer)
 {
 }
 public CleanApp(IPlatformInitializer?initializer = null) : base(initializer)
 {
     InitializeComponent();
 }
Exemplo n.º 5
0
 public App(IPlatformInitializer?initializer) : base(initializer)
 {
 }