本文整理汇总了C#中Cirrious类的典型用法代码示例。如果您正苦于以下问题:C# Cirrious类的具体用法?C# Cirrious怎么用?C# Cirrious使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Cirrious类属于命名空间,在下文中一共展示了Cirrious类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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));
}
示例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);
}
示例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);
}
示例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();
}
}
示例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);
}
示例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);
}
示例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);
}
示例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 ();
}
示例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);
}
示例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());
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}