C#的Silverlight 3 - 编程导航页面之间? [英] C# Silverlight 3 - Programmatically Navigate Between Pages?
本文介绍了C#的Silverlight 3 - 编程导航页面之间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
说我有一个页数一个C#Silverlight 3应用程序。的第一页被称为主页,并且第二页被称为详细。导航到细节的唯一方法是通过编程。我该怎么做?这四处寻找答案,我的一切都是发现XAML的URI mapper实现....
Say I have a C# Silverlight 3 application with a number of pages. The first page is called Home, and the second page is called Details. The only way to navigate to details is programmatically. How do I do this?! Looked everywhere for the answer and all i've found are xaml uri mapper implementations....
帮助非常感谢
推荐答案
您是否尝试过的NavigationService?
Have you tried the NavigationService?
this.NavigationService.Navigate(新的URI(Details.xaml,UriKind 。相对));
this.NavigationService.Navigate(new Uri("Details.xaml", UriKind.Relative));
这篇关于C#的Silverlight 3 - 编程导航页面之间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文