• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Cirrious类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Cirrious的典型用法代码示例。如果您正苦于以下问题:C# Cirrious类的具体用法?C# Cirrious怎么用?C# Cirrious使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Cirrious类属于命名空间,在下文中一共展示了Cirrious类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: LoadPlugins

 public override void LoadPlugins(Cirrious.CrossCore.Plugins.IMvxPluginManager pluginManager)
 {
     pluginManager.EnsurePluginLoaded<PluginLoader>();
     pluginManager.EnsurePluginLoaded<Cirrious.MvvmCross.Plugins.Visibility.PluginLoader>();
     pluginManager.EnsurePluginLoaded<Cirrious.MvvmCross.Plugins.File.PluginLoader> ();
     base.LoadPlugins(pluginManager);
 }
开发者ID:juzzpig,项目名称:JabbRIsMobile,代码行数:7,代码来源:Setup.cs


示例2: FillValueConverters

		protected override void FillValueConverters(Cirrious.MvvmCross.Binding.Interfaces.Binders.IMvxValueConverterRegistry registry)
        {
            base.FillValueConverters(registry);

            var filler = new MvxInstanceBasedValueConverterRegistryFiller(registry);
            filler.AddFieldConverters(typeof(Converters));
        }
开发者ID:slodge,项目名称:azure-mobile-services,代码行数:7,代码来源:Setup.cs


示例3: FillBindingNames

 protected override void FillBindingNames(Cirrious.MvvmCross.Binding.BindingContext.IMvxBindingNameRegistry registry)
 {
     // use these to register default binding names
     //registry.AddOrOverwrite<NicerBinaryEdit>(be => be.MyCount);
     //registry.AddOrOverwrite(typeof(BinaryEdit),"N28Doofus");
     base.FillBindingNames(registry);
 }
开发者ID:khorenberg,项目名称:NPlus1DaysOfMvvmCross,代码行数:7,代码来源:Setup.cs


示例4: FillTargetFactories

 protected override void FillTargetFactories(Cirrious.MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
 {
     registry.RegisterCustomBindingFactory<BinaryEdit>(
                     "N28Doofus",
                     binary => new BinaryEditFooTargetBinding(binary));
     base.FillTargetFactories(registry);
 }
开发者ID:khorenberg,项目名称:NPlus1DaysOfMvvmCross,代码行数:7,代码来源:Setup.cs


示例5: Show

        public override void Show(Cirrious.MvvmCross.Touch.Views.IMvxTouchView view)
        {
            
            // When initializing views for the first time, we will setup 
            if (view is LoginViewController)
            {              
                _loginViewController = (LoginViewController) view;
                base.Show(view);             
            }
              
            else if (view is MainViewController)
            {                
                _mainViewController = (MainViewController) view;
                base.Show(view);
            }
            else
            {
                if (PresentView(view) == false)
                {
                    // No views can handle presenting this view...just push it on the navigation stack as last resort.
                    base.Show(view);
                }
            }
            _viewPresenters.Add(view);

            var viewPresenter = view as IViewPresenter;
            if (viewPresenter != null)
            {
                viewPresenter.ViewPresenterAdded();
            }
        }
开发者ID:kashifshaikh,项目名称:PropertyTracker,代码行数:31,代码来源:AppPresenter.cs


示例6: AddPluginsLoaders

 protected override void AddPluginsLoaders(Cirrious.MvvmCross.Platform.MvxLoaderPluginRegistry loaders)
 {
     loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Location.WinRT.Plugin>();
     loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.ThreadUtils.WinRT.Plugin>();
     loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Visibility.WinRT.Plugin>();
     base.AddPluginsLoaders(loaders);
 }
开发者ID:JoanMiro,项目名称:MvxMod,代码行数:7,代码来源:Setup.cs


示例7: AddPluginsLoaders

        protected override void AddPluginsLoaders(Cirrious.MvvmCross.Platform.MvxLoaderPluginRegistry loaders)
        {
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.ResourceLoader.WindowsPhone.Plugin>();
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.File.WindowsPhone.Plugin>();

            base.AddPluginsLoaders(loaders);
        }
开发者ID:Tinytoot,项目名称:TechdaysBeDemo,代码行数:7,代码来源:Setup.cs


示例8: AddPluginsLoaders

        protected override void AddPluginsLoaders(Cirrious.MvvmCross.Platform.MvxLoaderPluginRegistry loaders)
        {
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.DownloadCache.Touch.Plugin>();
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.File.Touch.Plugin>();
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.WebBrowser.Touch.Plugin>();

            base.AddPluginsLoaders (loaders);
        }
开发者ID:jorik041,项目名称:CrossBar,代码行数:8,代码来源:Setup.cs


示例9: MvxBindableGridView

		public MvxBindableGridView (Context context, IAttributeSet attrs, Cirrious.MvvmCross.Binding.Android.Views.MvxBindableListAdapter adapter)
            : base(context, attrs)
		{
			var itemTemplateId = Cirrious.MvvmCross.Binding.Android.Views.MvxBindableListViewHelpers.ReadTemplatePath (context, attrs);
			adapter.ItemTemplateId = itemTemplateId;
			Adapter = adapter;
			SetupItemClickListener ();
		}
开发者ID:gerich-home,项目名称:MvvmCross,代码行数:8,代码来源:MvxBindableGridView.cs


示例10: ChangePresentation

		public override void ChangePresentation (Cirrious.MvvmCross.ViewModels.MvxPresentationHint hint)
		{
			if (hint is MvxClosePresentationHint && 
                _window.RootViewController.ModalViewController is NewAppointmentView)
                this.CloseModalViewController();

			base.ChangePresentation (hint);
		}
开发者ID:geekpivot,项目名称:HealthClinic.biz,代码行数:8,代码来源:CustomPresenter.cs


示例11: FillValueConverters

        protected override void FillValueConverters(Cirrious.CrossCore.Converters.IMvxValueConverterRegistry registry)
        {
            base.FillValueConverters(registry);

            registry.AddOrOverwrite("SessionDetails", new SessionDetailsConverter());
            registry.AddOrOverwrite("MultiLine", new MultiLineTextValueConverter());
            registry.AddOrOverwrite("StringFormat", new StringFormatValueConverter());
            registry.AddOrOverwrite("Time", new TimeValueConverter());
        }
开发者ID:jorik041,项目名称:NycCodeCamp8,代码行数:9,代码来源:Setup.cs


示例12: FillTargetFactories

 protected override void FillTargetFactories(
     Cirrious.MvvmCross.Binding.Interfaces.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
 {
     registry.RegisterFactory(new MvxPropertyInfoTargetBindingFactory(typeof (ValueElement), "Value",
                                                                      (element, propertyInfo) =>
                                                                      new MvxElementValueTargetBinding(element,
                                                                                                       propertyInfo)));
     base.FillTargetFactories(registry);
 }
开发者ID:JoanMiro,项目名称:MvxMod,代码行数:9,代码来源:MvxBaseAndroidDialogBindingSetup.cs


示例13: Show

        public override void Show(Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request)
        {
            var viewController = (UIViewController)Mvx.Resolve<IMvxTouchViewCreator>().CreateView(request);

            if (request.ViewModelType == typeof(FirstViewModel))
                _svc.SetLeft(viewController);
            else
                _svc.SetRight(viewController);
        }
开发者ID:KiranKumarAlugonda,项目名称:NPlus1DaysOfMvvmCross,代码行数:9,代码来源:Setup.cs


示例14: ShowView

        public override bool ShowView(Cirrious.MvvmCross.Touch.Interfaces.IMvxTouchView view)
        {
            if (view != TabBarPresenter)
            {
                if (TabBarPresenter.ShowView(view))
                    return true;
            }

            return base.ShowView(view);
        }
开发者ID:slodge,项目名称:mobile-samples,代码行数:10,代码来源:MWCPresenter.cs


示例15: Show

 public override void Show(Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request)
 {
     if (_host != null)
     {
         var viewFinder = Mvx.Resolve<IMvxViewsContainer>();
         var viewType = viewFinder.GetViewType(request.ViewModelType);
         if (viewType == null) throw new MvxException("Could not find view type for " + request.ViewModelType);
         var view = Activator.CreateInstance(viewType);
         if (view == null) throw new MvxException("Could not load view for " + viewType);
         return;
     }
     base.Show(request);
 }
开发者ID:42Spikes,项目名称:F2S,代码行数:13,代码来源:MainViewPresenter.cs


示例16: Show

		public override void Show (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request)
		{
			if (request.ViewModelType == typeof(NewAppointmentViewModel))
            {
                var viewController = Mvx.Resolve<IMvxTouchViewCreator>()
                    .CreateView(request) as UIViewController;

                PresentModalViewController(viewController, true);

                return;
            }

			base.Show (request);
		}
开发者ID:geekpivot,项目名称:HealthClinic.biz,代码行数:14,代码来源:CustomPresenter.cs


示例17: AddPluginsLoaders

        protected override void AddPluginsLoaders(Cirrious.MvvmCross.Platform.MvxLoaderPluginRegistry registry)
        {
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Accelerometer.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Color.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.File.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.ResourceLoader.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Settings.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Share.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Speech.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Sphero.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Visibility.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.WebBrowser.WinRT.Plugin>();
            registry.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.XamPhotos.WinRT.Plugin>();


            base.AddPluginsLoaders(registry);
        }
开发者ID:slodge,项目名称:BallControl,代码行数:17,代码来源:Setup.cs


示例18: Show

        public override void Show(Cirrious.MvvmCross.Touch.Views.IMvxTouchView view)
        {
            if (view is HomeView)
            {
                _homeView = view as HomeView;
            }

            //			if (view is GrandChildView)
            //			{
            //				if (_firstView != null)
            //				{
            //					_firstView.ShowGrandChild(view);
            //				}
            //				return;
            //			}

            base.Show(view);
        }
开发者ID:RoTTex,项目名称:TwitterMVVM,代码行数:18,代码来源:Setup.cs


示例19: Show

        public override void Show(Cirrious.MvvmCross.Touch.Views.IMvxTouchView view)
        {
            if (view is FirstView)
            {
                _firstView = view as FirstView;
            }

            if (view is GrandChildView)
            {
                if (_firstView != null)
                {
                    _firstView.ShowGrandChild(view);
                }
                return;
            }

            base.Show(view);
        }
开发者ID:KiranKumarAlugonda,项目名称:NPlus1DaysOfMvvmCross,代码行数:18,代码来源:Setup.cs


示例20: Show

        public override void Show(Cirrious.MvvmCross.Touch.Views.IMvxTouchView 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);
        }
开发者ID:Dexyon,项目名称:MvvmCross-Samples,代码行数:19,代码来源:OnlyTwoDeepPresenter.cs



注:本文中的Cirrious类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# City类代码示例发布时间:2022-05-24
下一篇:
C# CircularBuffer类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap