コード例 #1
0
        public MvxTouchControl(string nibName, NSBundle bundle)
            : base(nibName, bundle)
        {
            //Hack: iOS crashes if you create a MvxUIViewController without DataContext
            DataContext = new object ();

            if (!Mvx.CanResolve<IMvxControlsContainer>())
                new Plugin().Load();

            _container = Mvx.Resolve<IMvxControlsContainer>();
            _container.Add(this);
        }
コード例 #2
0
        public MvxTouchControl(string nibName, NSBundle bundle) : base(nibName, bundle)
        {
            //Hack: iOS crashes if you create a MvxUIViewController without DataContext
            DataContext = new object();

            if (!Mvx.CanResolve <IMvxControlsContainer>())
            {
                new Plugin().Load();
            }

            _container = Mvx.Resolve <IMvxControlsContainer>();
            _container.Add(this);
        }
コード例 #3
0
        private void Initialize()
        {
            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            BindingContext = new MvxAndroidBindingContext(Context, this);

            if (!Mvx.CanResolve <IMvxControlsContainer>())
            {
                new Plugin().Load();
            }

            _container = Mvx.Resolve <IMvxControlsContainer>();
            _container.Add(this);
        }
コード例 #4
0
        public MvxWpfControl()
        {
            DataContext = null;

            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            if (DesignerProperties.GetIsInDesignMode(this))
                return;

            if (!Mvx.CanResolve<IMvxControlsContainer>())
                new Plugin().Load();

            _container = Mvx.Resolve<IMvxControlsContainer>();

            Loaded += OnLoaded;
            Unloaded += OnUnloaded;
        }
コード例 #5
0
        public MvxStoreControl()
        {
            DataContext = null;

            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            if (DesignMode.DesignModeEnabled)
                return;

            if (!Mvx.CanResolve<IMvxControlsContainer>())
                new Plugin().Load();

            _container = Mvx.Resolve<IMvxControlsContainer>();

            Loaded += MvxStoreControl_Loaded;
            Unloaded += MvxStoreControl_Unloaded;
        }
コード例 #6
0
        public MvxPhoneControl()
        {
            DataContext = null;

            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            if (DesignerProperties.IsInDesignTool)
                return;

            if (!Mvx.CanResolve<IMvxControlsContainer>())
                new Plugin().Load();

            _container = Mvx.Resolve<IMvxControlsContainer>();

            Loaded += MvxPhoneControl_Loaded;
            Unloaded += MvxPhoneControl_Unloaded;
        }
コード例 #7
0
        public MvxWpfControl()
        {
            DataContext = null;

            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            if (DesignerProperties.GetIsInDesignMode(this))
            {
                return;
            }

            if (!Mvx.CanResolve <IMvxControlsContainer>())
            {
                new Plugin().Load();
            }

            _container = Mvx.Resolve <IMvxControlsContainer>();

            Loaded   += OnLoaded;
            Unloaded += OnUnloaded;
        }
コード例 #8
0
        public MvxStoreControl()
        {
            DataContext = null;

            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            if (DesignMode.DesignModeEnabled)
            {
                return;
            }

            if (!Mvx.CanResolve <IMvxControlsContainer>())
            {
                new Plugin().Load();
            }

            _container = Mvx.Resolve <IMvxControlsContainer>();

            Loaded   += MvxStoreControl_Loaded;
            Unloaded += MvxStoreControl_Unloaded;
        }
コード例 #9
0
        private void Initialize()
        {
            EmptyControlBehaviour = this.GetDefaultEmptyControlBehaviour();

            BindingContext = new MvxAndroidBindingContext(Context, this);

            if (!Mvx.CanResolve<IMvxControlsContainer>())
                new Plugin().Load();

            _container = Mvx.Resolve<IMvxControlsContainer>();
            _container.Add(this);
        }