protected virtual IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
        {
            var formsPagePresenter = new MvxFormsPagePresenter(viewPresenter);

            Mvx.IoCProvider.RegisterSingleton <IMvxFormsPagePresenter>(formsPagePresenter);
            return(formsPagePresenter);
        }
Beispiel #2
0
        /// <summary>
        /// Register the form presenter (MvvmCross)
        /// </summary>
        protected override IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
        {
            var formsPresenter = base.CreateFormsPagePresenter(viewPresenter);

            Mvx.IoCProvider.RegisterSingleton(formsPresenter);
            return(formsPresenter);
        }
        protected virtual IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
        {
            var formsPagePresenter = new MvxFormsWpfViePresenter(viewPresenter);

            Mvx.RegisterSingleton(formsPagePresenter);
            return(formsPagePresenter);
        }
Beispiel #4
0
 protected override IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
 {
     _formsPagePresenter = new CustomMvxFormsPagePresenter(viewPresenter);
     Mvx.IoCProvider.RegisterSingleton <IMvxFormsPagePresenter>(_formsPagePresenter);
     Mvx.IoCProvider.RegisterSingleton <ISettingsHelper>(new SettingsHelper());
     return(_formsPagePresenter);
 }
Beispiel #5
0
        protected virtual IMvxFormsPagePresenter CreateFormsPagePresenter(
            IMvxFormsViewPresenter viewPresenter)
        {
            IMvxFormsPagePresenter formsPagePresenter = base.CreateFormsPagePresenter(viewPresenter);

            Mvx.get_IoCProvider().RegisterSingleton <IMvxFormsPagePresenter>((M0)formsPagePresenter);
            return(formsPagePresenter);
        }
Beispiel #6
0
        protected override IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
        {
            // workaround which should be removed when https://github.com/MvvmCross/MvvmCross/pull/2972 is released
            var presenter = base.CreateFormsPagePresenter(viewPresenter);

            Mvx.RegisterSingleton <IMvxFormsPagePresenter>(presenter);
            return(presenter);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:MvvmCross.Forms.Views.MvxFormsPagePresenter"/> class.
 /// </summary>
 /// <param name="platformPresenter">The native platform presenter from where the MvxFormsPagePresenter is created</param>
 public MvxFormsPagePresenter(IMvxFormsViewPresenter platformPresenter)
 {
     PlatformPresenter   = platformPresenter;
     FormsApplication    = platformPresenter.FormsApplication;
     ViewsContainer      = platformPresenter.ViewsContainer;
     ViewModelTypeFinder = platformPresenter.ViewModelTypeFinder;
     AttributeTypesToActionsDictionary = platformPresenter.AttributeTypesToActionsDictionary;
 }
Beispiel #8
0
 protected ViewModelBase()
 {
     base.\u002Ector();
     this._settings             = (IApplicationSettings)Mvx.get_IoCProvider().Resolve <IApplicationSettings>();
     this._navigationService    = (IMvxNavigationService)Mvx.get_IoCProvider().Resolve <IMvxNavigationService>();
     this._textProvider         = (IMvxTextProvider)Mvx.get_IoCProvider().Resolve <IMvxTextProvider>();
     this._userDialogs          = (IUserDialogs)Mvx.get_IoCProvider().Resolve <IUserDialogs>();
     this._modalDialog          = (IModalDialog)Mvx.get_IoCProvider().Resolve <IModalDialog>();
     this._connectivity         = (IConnectivity)Mvx.get_IoCProvider().Resolve <IConnectivity>();
     this._singleNavigation     = (ISingleNavigation)Mvx.get_IoCProvider().Resolve <ISingleNavigation>();
     this._profileDataService   = (IProfileDataService)Mvx.get_IoCProvider().Resolve <IProfileDataService>();
     this._profileDbDataService = (IProfileDbDataService)Mvx.get_IoCProvider().Resolve <IProfileDbDataService>();
     this._formsViewPresenter   = (IMvxFormsViewPresenter)Mvx.get_IoCProvider().Resolve <IMvxFormsViewPresenter>();
 }
Beispiel #9
0
 protected override IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
 {
     FFImageLoading.Forms.Platform.CachedImageRenderer.Init(false);
     return(new AppPagePresenter(viewPresenter));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:MvvmCross.Forms.Views.MvxFormsPagePresenter"/> class.
 /// </summary>
 /// <param name="platformPresenter">The native platform presenter from where the MvxFormsPagePresenter is created</param>
 public MvxFormsPagePresenter(IMvxFormsViewPresenter platformPresenter)
 {
     PlatformPresenter = platformPresenter;
 }
 public MvxFormsWpfViePresenter(IMvxFormsViewPresenter platformPresenter) : base(platformPresenter)
 {
 }
Beispiel #12
0
 protected override IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
 {
     return(new AppPagePresenter(viewPresenter));
 }
 public AppPagePresenter(IMvxFormsViewPresenter platformPresenter)
     : base(platformPresenter)
 {
 }
Beispiel #14
0
 public AppCustomPresenter(IMvxFormsViewPresenter platformPresenter) : base(platformPresenter)
 {
 }
 public RgFormsPresenter(IMvxFormsViewPresenter platformPresenter) : base(platformPresenter)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:MvvmCross.Forms.Views.MvxFormsPagePresenter" /> class.
 /// </summary>
 /// <param name="platformPresenter">The native platform presenter from where the MvxFormsPagePresenter is created</param>
 public CustomMvxFormsPagePresenter(IMvxFormsViewPresenter platformPresenter)
     : base(platformPresenter)
 {
 }
Beispiel #17
0
        protected override IMvxFormsPagePresenter CreateFormsPagePresenter(IMvxFormsViewPresenter viewPresenter)
        {
            return(new CustomPresenter(viewPresenter));
//            return base.CreateFormsPagePresenter(viewPresenter);
        }