windowsphone开发页面跳转到另外一个dll中的页面

WP的页面跳转通常是只能跳转到本DLL的页面, 若是要跳转到其余DLL的页面则须要这样写spa

            (Application.Current.RootVisual as PhoneApplicationFrame).
                Navigate(new Uri("/Controls;component/ColumSetting.xaml",UriKind.Relative));

其中/Controls;component/ColumSetting.xaml的格式为{/命名空间;component/路径/文件名}code

这样的就能够跳转到想要的DLL中了,component

上面的代码是我跳转到Controls这个DLL中的一个控件blog

之因此会用到(Application.Current.RootVisual as PhoneApplicationFrame)这样的写法,是从一个控件中而不是从一个page中跳转过去的。io

相关文章
相关标签/搜索