无法在Silverlight应用程序中导航页面 [英] Can't navigate pages in silverlight application
本文介绍了无法在Silverlight应用程序中导航页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Silverlight应用程序中创建一个美术馆网站.当我单击按钮时,我使用超链接按钮在网站上的页面之间导航,但是它不起作用.出现错误,提示找不到资源.
这是按钮的xaml代码
I''m making a art gallery website in a silverlight application. I''ve used hyperlink buttons to navigate between pages on the website, when I click on the buttons however it doesn''t work. It comes up with an error saying resource cannot be found.
Heres the xaml code for the button
<hyperlinkbutton content="Home" height="23" horizontalalignment="Left" margin="253,65,0,0" name="btnHome" navigateuri="/GalleryPage.xaml" verticalalignment="Top" width="100" grid.row="2" fontsize="16" removed="#FF0D91F8" foreground="#FFE9EFF5" />
推荐答案
请确保您提供了正确的页面路径.
检查这些:
http://msdn.microsoft.com /en-us/library/system.windows.controls.hyperlinkbutton.navigateuri(v=vs.95).aspx [ http://msdn.microsoft.com/en -us/library/system.windows.controls.hyperlinkbutton(v = vs.95).aspx [
Make sure you have provided the correct path to the pages.
Check these out:
http://msdn.microsoft.com/en-us/library/system.windows.controls.hyperlinkbutton.navigateuri(v=vs.95).aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.controls.hyperlinkbutton(v=vs.95).aspx[^]
hope it helps :)
这篇关于无法在Silverlight应用程序中导航页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文