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(); }
protected override void FillBindingNames(MvvmCross.Binding.BindingContext.IMvxBindingNameRegistry obj) { base.FillBindingNames(obj); obj.AddOrOverwrite(typeof(StyledStringElement), "Tapped"); obj.AddOrOverwrite(typeof(UISegmentedControl), "ValueChanged"); }
public void Trace(MvvmCross.Platform.Platform.MvxTraceLevel level, string tag, string message, params object[] args) { }
public void Trace(MvvmCross.Platform.Platform.MvxTraceLevel level, string tag, string message) { }
public void Trace(MvvmCross.Platform.Platform.MvxTraceLevel level, string tag, System.Func<string> message) { }