随笔分类 -  WPF

wpf中显示HTML
摘要:真是匪夷所思,目前版本居然不支持从论坛查到有两个方法:1. 如果有url, 用frame2. 如果没有,需要在用到winform和wpf的互操作,就是嵌入winform的Webbrowser控件。需要引入两个dll,xaml如下:<windowsformshostClipToBounds="True"Opacity="1"Foreground="{x:Null}"Height="Auto"V... 阅读全文
posted @ 2006-06-12 21:02 steeven 阅读(7342) 评论(6) 推荐(0)
编程查看对象的xaml
摘要:System.Windows.Markup.XamlWriter.Save(obj);同样:System.Windows.Markup.XamlReader.Load(...);//加载 阅读全文
posted @ 2006-06-09 14:42 steeven 阅读(868) 评论(0) 推荐(0)
WPF应用程序模型
摘要:两种:普通桌面应用、浏览器应用Application.Current。可作为session使用,共享数据。三种模型:Window.NavigationWindow : Window 主要提供Navigate方法Page: 不能以Window做内容NavigationWindow/Frame都可以Navigate,几种方式:1. <HyperLink>2. container.navig... 阅读全文
posted @ 2006-06-09 11:43 steeven 阅读(1806) 评论(1) 推荐(0)