本文整理汇总了C#中INavigation.PopModalAsync方法的典型用法代码示例。如果您正苦于以下问题:C# INavigation.PopModalAsync方法的具体用法?C# INavigation.PopModalAsync怎么用?C# INavigation.PopModalAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类INavigation
的用法示例。
在下文中一共展示了INavigation.PopModalAsync方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CustomerTabbedPage
public CustomerTabbedPage(INavigation navigation, Account account)
{
// since we're modally presented this tabbed view (because Android doesn't natively support nested tabs),
// this tool bar item provides a way to get back to the Customers list
ToolbarItems.Add(new ToolbarItem(TextResources.Customers_Orders_CustomerTabbedPage_BackToCustomers, null, async () => await navigation.PopModalAsync()));
CustomerDetailPage customerDetailPage = new CustomerDetailPage()
{
BindingContext = new CustomerDetailViewModel(account) { Navigation = this.Navigation },
Title = TextResources.Customers_Detail_Tab_Title,
Icon = new FileImageSource() { File = "CustomersTab" } // only used on iOS
};
CustomerOrdersPage customerOrdersPage = new CustomerOrdersPage()
{
BindingContext = new OrdersViewModel(account) { Navigation = this.Navigation },
Title = TextResources.Customers_Orders_Tab_Title,
Icon = new FileImageSource() { File = "ProductsTab" } // only used on iOS
};
CustomerSalesPage customerSalesPage = new CustomerSalesPage()
{
BindingContext = new CustomerSalesViewModel(account) { Navigation = this.Navigation },
Title = TextResources.Customers_Sales_Tab_Title,
Icon = new FileImageSource() { File = "SalesTab" } // only used on iOS
};
Children.Add(customerDetailPage);
Children.Add(customerOrdersPage);
Children.Add(customerSalesPage);
}
示例2: LoginPageViewModel
public LoginPageViewModel (INavigation navigation)
{
Navigation = navigation;
LoginCommand = new Command (async()=>{
if(navigation!=null)
await Navigation.PopModalAsync();
});
}
示例3: ShowAsync
async public Task ShowAsync (INavigation navigation)
{
System.Diagnostics.Debug.WriteLine ("StateMachine.ShowAsync()");
// push on the base nav page modally, so that the whole lot can be poped off at the end
await navigation.PushModalAsync(_navigationPage);
// wait till its finished, then clean it all up
var results = await _taskCompletionSource.Task;
await navigation.PopModalAsync ();
}
示例4: DoPop
protected static Task<Page> DoPop(INavigation navigation, bool useModalNavigation, bool animated)
{
if (useModalNavigation)
return navigation.PopModalAsync(animated);
else
return navigation.PopAsync(animated);
}