本文整理汇总了C#中NavigationPage.CreateViewController方法的典型用法代码示例。如果您正苦于以下问题:C# NavigationPage.CreateViewController方法的具体用法?C# NavigationPage.CreateViewController怎么用?C# NavigationPage.CreateViewController使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NavigationPage
的用法示例。
在下文中一共展示了NavigationPage.CreateViewController方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FinishedLaunching
public override void FinishedLaunching(UIApplication application)
{
Forms.Init ();
Athena.ImagePicker.Pcl.App.Intitialise ();
var navigationPage = new NavigationPage (new TestHarnessPage());
var viewController = navigationPage.CreateViewController ();
Window = new UIWindow (UIScreen.MainScreen.Bounds);
Window.RootViewController = viewController;
Window.MakeKeyAndVisible ();
Athena.ImagePicker.Pcl.App.Register<IImagePickerProvider> (
new ImagePickerProvider (Window.RootViewController),
new ContainerControlledLifetimeManager());
}
示例2: TryShowPage
private async Task<bool> TryShowPage(MvxViewModelRequest request)
{
var page = MvxPresenterHelpers.CreatePage(request);
if (page == null)
return false;
var viewModel = MvxPresenterHelpers.LoadViewModel(request);
if (_navigationPage == null)
{
Forms.Init();
_navigationPage = new NavigationPage(page);
_window.RootViewController = _navigationPage.CreateViewController();
}
else
{
await _navigationPage.PushAsync(page);
}
page.BindingContext = viewModel;
return true;
}
示例3: CustomPlatformInitialization
protected override void CustomPlatformInitialization(NavigationPage mainPage)
{
_window.RootViewController = mainPage.CreateViewController();
}