首页 新闻 会员 周边

wpf跳转

0
悬赏园豆:5 [待解决问题]

如何从wpf web application中跳转到一个html文件中 .xaml文件后台代码如何写 我只知道xaml之间可以跳转

问题补充:

客户i这是在xaml之间的调整  能否跳转到html等其他类型的文件

蔬菜的主页 蔬菜 | 初学一级 | 园豆:185
提问于:2011-06-02 17:39
< >
分享
所有回答(1)
0

前台转:

<TextBlock FontSize="24" TextWrapping="Wrap" Margin="0,0,0,-19.998">
            <Hyperlink x:Name="LnkPre" NavigateUri="Page2.xaml" Foreground="Black">
                Enter Page2
             </Hyperlink>
</TextBlock>

后台转:

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

 NavigationService.GetNavigationService(this).GoForward();向后转
 NavigationService.GetNavigationService(this).GoBack();  向前转

Lee's Blog | 园豆:530 (小虾三级) | 2011-06-03 08:43
可是这是在xaml文件之间的跳转 能否跳转到其他的文件 如 html等
支持(0) 反对(0) 蔬菜 | 园豆:185 (初学一级) | 2011-06-04 13:32
Xaml中:Click="Hyperlink_Click"
后台代码: System.Diagnostics.Process.Start("Http://www.baidu.com");
支持(0) 反对(0) Lee's Blog | 园豆:530 (小虾三级) | 2011-06-05 17:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册