示例#1
0
        protected override void FillTargetFactories(MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
        {
            registry.RegisterCustomBindingFactory <BinaryEdit>(
                "MyCount",
                (arg) => new BinaryEditTargetBinding(arg));

            base.FillTargetFactories(registry);
        }
示例#2
0
        protected override void FillTargetFactories(MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
        {
            registry.RegisterCustomBindingFactory <PagingTableSource>("Paging", (arg) => new TableSourcePagingBinding(arg));
            registry.RegisterCustomBindingFactory <UIWebView>("Html", (arg) => new WebViewStringBinding(arg));
            registry.RegisterCustomBindingFactory <UIWebView>("Loaded", (arg) => new WebViewLoadedBinding(arg));
            registry.RegisterCustomBindingFactory <UIScrollView>("Size", (arg) => new ScrollViewSizeBinding(arg));
            registry.RegisterCustomBindingFactory <TabView>("Tabs", (arg) => new TabViewTabsBinding(arg));
            registry.RegisterCustomBindingFactory <UISegmentedControl>("Segmented", (arg) => new SegmentedBinding(arg));
            registry.RegisterCustomBindingFactory <UIButton>("ButtonTitle", (arg) => new ButtonTextBinding(arg));

            base.FillTargetFactories(registry);
        }
示例#3
0
 /// <summary>
 /// Fills the target factories.
 /// </summary>
 /// <param name="registry">The registry.</param>
 protected override void FillTargetFactories(MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
 {
     base.FillTargetFactories(registry);
     registry.RegisterFactory(new MvxCustomBindingFactory <LinearLayout>("ShapeBackground", (view) => new ShapeBackgroundBinding(view)));
 }
示例#4
0
 protected override void FillTargetFactories(MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
 {
     base.FillTargetFactories(registry);
     registry.RegisterCustomBindingFactory <BottomNavigationView>("BottomNavSelectedBindingKey", view => new MvxBottomNavigationItemChangedBinding(view));
 }
示例#5
0
文件: Setup.cs 项目: nvduc2910/ShopIt
 protected override void FillTargetFactories(MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
 {
     base.FillTargetFactories(registry);
 }