Beispiel #1
0
        protected override void FillTargetFactories(MvvmCross.Binding.Interfaces.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
        {
            base.FillTargetFactories(registry);

            registry.RegisterFactory(new MvxCustomBindingFactory<UIButton>("IsFavorite", (button) => new FavoritesButtonBinding(button)));
            registry.RegisterFactory(new MvxCustomBindingFactory<SessionCell2>("IsFavorite", (cell) => new FavoritesSessionCellBinding(cell)));
        }
        public override void Show(MvvmCross.Touch.Interfaces.IMvxTouchView view)
        {
            if (TabBarPresenter != null && view != TabBarPresenter) {
            TabBarPresenter.ShowView (view);
            return;
             }

             base.Show (view);
        }
        async void _adapter_DeviceDiscovered(object sender, MvvmCross.Plugins.BLE.Bluetooth.LE.DeviceDiscoveredEventArgs e)
        {
            if (e.Device.Name.Contains("Nexus"))
            {
                _adapter.StopScanningForDevices();
                _adapter.ConnectToDevice(e.Device);

                await Task.Delay(3000);

                //_button.Text = "Connected";
                //    await _adapter.BondAsync(e.Device);


            }
        }
        public override void Show(MvvmCross.iOS.Views.IMvxIosView view)
        {
            if (MasterNavigationController == null)
            {
                base.Show(view);
                return;
            }

            if (MasterNavigationController.ViewControllers.Length <= 1)
            {
                base.Show(view);
                return;
            }

            MasterNavigationController.PopViewController(false);
            MasterNavigationController.PushViewController(
                view as UIViewController,
                true);
        }
 public void Include(MvvmCross.Platform.IoC.MvxPropertyInjector injector)
 {
     injector = new MvvmCross.Platform.IoC.MvxPropertyInjector();
 }
Beispiel #6
0
 protected override void FillBindingNames(MvvmCross.Binding.BindingContext.IMvxBindingNameRegistry obj)
 {
     base.FillBindingNames(obj);
     obj.AddOrOverwrite(typeof(StyledStringElement), "Tapped");
     obj.AddOrOverwrite(typeof(UISegmentedControl), "ValueChanged");
 }
Beispiel #7
0
 public void Trace(MvvmCross.Platform.Platform.MvxTraceLevel level, string tag, string message, params object[] args)
 {
 }
Beispiel #8
0
 public void Trace(MvvmCross.Platform.Platform.MvxTraceLevel level, string tag, string message)
 {
 }
Beispiel #9
0
 public void Trace(MvvmCross.Platform.Platform.MvxTraceLevel level, string tag, System.Func<string> message)
 {
 }