C# Silverlight 3 - 以编程方式在页面之间导航? [英] C# Silverlight 3 - Programmatically Navigate Between Pages?

查看:9
本文介绍了C# Silverlight 3 - 以编程方式在页面之间导航?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个包含多个页面的 C# Silverlight 3 应用程序.第一个页面称为主页,第二个页面称为详细信息.导航到详细信息的唯一方法是以编程方式.我该怎么做呢?!到处寻找答案,我发现的只是 xaml uri 映射器实现....

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(new Uri("Details.xaml", UriKind.Relative));

this.NavigationService.Navigate(new Uri("Details.xaml", UriKind.Relative));

这篇关于C# Silverlight 3 - 以编程方式在页面之间导航?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆