 |
WP - อยากทราบเรื่อง WebView ของ Windows Phone ว่าทำอย่างไรคับ |
|
 |
|
|
 |
 |
|
ใช้ WebBrowser ครับ

WebBrowser - Windows Phone Controls
|
 |
 |
 |
 |
Date :
2013-07-12 12:34:10 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากคับ
ขอถามอีกคำถามนะคับ
คือผมจะโช HTML ที่เรากำหนดเอง
ได้ไหมคับ
|
 |
 |
 |
 |
Date :
2013-07-12 14:09:26 |
By :
tonttt |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
readme.htm
<html>
<head><title>Sample Readme File</title></head>
<body>
<p>Sample Readme Content</p>
</body>
</html>
Code (C#)
public MainPage()
{ InitializeComponent();
SupportedOrientations = SupportedPageOrientation.Portrait | SupportedPageOrientation.Landscape;
webBrowser1.Loaded += WebBrowser_OnLoaded;
}
private void WebBrowser_OnLoaded(object sender, RoutedEventArgs e)
{
SaveFilesToIsoStore();
webBrowser1.Navigate(new Uri("readme.htm", UriKind.Relative));
}
ง่ายสุด ๆ ครับ
|
 |
 |
 |
 |
Date :
2013-07-12 14:11:54 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โปรเจคผมไม่มีหน้า html อ่ะคับ
คือผมจะดึงโค้ด HTML จาก Web Server ที่ทำไว้ขึ้นมาโชว์อ่ะครับ
|
 |
 |
 |
 |
Date :
2013-07-12 14:19:09 |
By :
tonttt |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากๆ คับ
|
 |
 |
 |
 |
Date :
2013-07-12 14:35:14 |
By :
tonttt |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2013-07-12 14:41:10 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอ่อคือว่ามัน error
operation not permitted on isolatedstoragefilestream
จะแก้ไขยังไงอ่าคับ
|
 |
 |
 |
 |
Date :
2013-07-12 15:48:00 |
By :
tonttt |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|