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

WP的页面跳转一般是只能跳转到本DLL的页面, 如果要跳转到其他DLL的页面则需要这样写

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

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

这样的就可以跳转到想要的DLL中了,

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

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

posted @ 2014-02-05 22:35  HighFUN  阅读(273)  评论(0编辑  收藏  举报