当前位置: 首页>>代码示例>>C#>>正文


C# INavigation.PopModalAsync方法代码示例

本文整理汇总了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);
        }
开发者ID:kirillg,项目名称:demo-xamarincrm,代码行数:31,代码来源:CustomerTabbedPage.cs

示例2: LoginPageViewModel

		public LoginPageViewModel (INavigation navigation)
		{
			Navigation = navigation;
			LoginCommand = new Command (async()=>{
				if(navigation!=null)
					await Navigation.PopModalAsync();
			});

		}
开发者ID:nishanil,项目名称:MobileBanking-Forms,代码行数:9,代码来源:LoginPageViewModel.cs

示例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 ();
		}			
开发者ID:populvuh,项目名称:StateMachine,代码行数:12,代码来源:StateMachine.cs

示例4: DoPop

 protected static Task<Page> DoPop(INavigation navigation, bool useModalNavigation, bool animated)
 {
     if (useModalNavigation)
         return navigation.PopModalAsync(animated);
     else
         return navigation.PopAsync(animated);
 }
开发者ID:ethedy,项目名称:Prism,代码行数:7,代码来源:PageNavigationService.cs


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