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); }
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); }
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); }
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; }
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; }
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; }
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; }
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; }
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); }