页面导航 [英] navigation of page

查看:151
本文介绍了页面导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了MainPage.xaml并通过它.cs文件我想导航到其他页面说PivotPage1.xaml,所以我用了

I have developed MainPage.xaml and through it .cs file I want to navigate to other page say PivotPage1.xaml,So I have used

   

NavigationService.Navigate(



new Uri("/PivotPage1.xaml", UriKind.Relative));


我用过UriKind.Relative

I have used UriKind.Relative

如果我使用过UriKind.absolute而不是UriKind.Rine怎么办?

What if I had used UriKind.absolute instead of UriKind.Relative?

此导航中相对和绝对的区别是什么page?

What is difference between relative and absolute in this navigation page?

推荐答案

您好

当您指定 relative 到当前目录时,它应该是相对的,就像你说/Assets/Check.png应该有UriKind.Relative.Things更具体的路径,比如说c:\ .... \1.jpg是绝对的uri。比如远程路径是
绝对路径。   

when you  specify relative to the current directory then it should be relative Like you say /Assets/Check.png should have UriKind.Relative.Things which are more specific to path, say c:\....\1.jpg are absolute uri. like remote paths are absolute.   


这篇关于页面导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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