<a href="http://files.cnblogs.com/webabcd/Windows8.rar">[源碼下載下傳]</a>
重新想象 Windows 8.1 Store Apps (81) - 控件增強: 加載本地 html, 智能替換 html 中的 url 引用, 通過 Share Contract 分享 WebView 中的内容, 為 WebView 截圖
介紹
重新想象 Windows 8.1 Store Apps 之控件增強
WebView 加載本地 html,智能替換 html 中的 url 引用
WebView 通過 Share Contract 分享
WebView 截圖
示例
1、示範如何通過 WebView 加載本地 html, 以及智能替換 html 中的 url 引用
WebView/Local.xaml
WebView/Local.xaml.cs
本地 Html:
WebView/HtmlDemo.html
2、示範如何通過 Share Contract 分享 WebView 中的内容(複制到剪切闆也是同理)
WebView/Share.xaml
WebView/Share.xaml.cs
3、示範如何對 WebView 中的内容截圖
WebView/Capture.xaml
WebView/Capture.xaml.cs
OK