summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.WindowsPhone
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-08-03 21:22:14 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-08-03 21:22:14 (GMT)
commitb186254d1f4a0547c67f4fd30669df9d4cf36b65 (patch)
tree6278a0f3217c726aed4e29c2027b10eb61522aeb /Xamarin.Forms.ControlGallery.WindowsPhone
parentb60fa6acf84d897d6283310e58b1c6c6365c391c (diff)
downloadxamarin-forms-b186254d1f4a0547c67f4fd30669df9d4cf36b65.zip
xamarin-forms-b186254d1f4a0547c67f4fd30669df9d4cf36b65.tar.gz
xamarin-forms-b186254d1f4a0547c67f4fd30669df9d4cf36b65.tar.bz2
Enable WebView to render local HTML files on WinRT platforms (#277)
* Enable WebView to render local HTML files on WinRT platforms * Add test to demonstrate that the solution works even if <head> isn't in the HTML string
Diffstat (limited to 'Xamarin.Forms.ControlGallery.WindowsPhone')
-rw-r--r--Xamarin.Forms.ControlGallery.WindowsPhone/WebImages/XamarinLogo.pngbin0 -> 6990 bytes
-rw-r--r--Xamarin.Forms.ControlGallery.WindowsPhone/Xamarin.Forms.ControlGallery.WindowsPhone.csproj3
-rw-r--r--Xamarin.Forms.ControlGallery.WindowsPhone/default.css2
-rw-r--r--Xamarin.Forms.ControlGallery.WindowsPhone/local.html10
4 files changed, 15 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.WindowsPhone/WebImages/XamarinLogo.png b/Xamarin.Forms.ControlGallery.WindowsPhone/WebImages/XamarinLogo.png
new file mode 100644
index 0000000..361e278
--- /dev/null
+++ b/Xamarin.Forms.ControlGallery.WindowsPhone/WebImages/XamarinLogo.png
Binary files differ
diff --git a/Xamarin.Forms.ControlGallery.WindowsPhone/Xamarin.Forms.ControlGallery.WindowsPhone.csproj b/Xamarin.Forms.ControlGallery.WindowsPhone/Xamarin.Forms.ControlGallery.WindowsPhone.csproj
index 16a042b..a856543 100644
--- a/Xamarin.Forms.ControlGallery.WindowsPhone/Xamarin.Forms.ControlGallery.WindowsPhone.csproj
+++ b/Xamarin.Forms.ControlGallery.WindowsPhone/Xamarin.Forms.ControlGallery.WindowsPhone.csproj
@@ -166,7 +166,10 @@
<Content Include="Assets\StoreLogo.scale-240.png" />
<Content Include="Assets\WideLogo.scale-240.png" />
<Content Include="coffee.png" />
+ <Content Include="default.css" />
+ <Content Include="local.html" />
<Content Include="toolbar_close.png" />
+ <Content Include="WebImages\XamarinLogo.png" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
diff --git a/Xamarin.Forms.ControlGallery.WindowsPhone/default.css b/Xamarin.Forms.ControlGallery.WindowsPhone/default.css
new file mode 100644
index 0000000..9e32b41
--- /dev/null
+++ b/Xamarin.Forms.ControlGallery.WindowsPhone/default.css
@@ -0,0 +1,2 @@
+html,body{margin:0;padding:10}
+body,p,h1{font-family:Chalkduster;font-style: italic;} \ No newline at end of file
diff --git a/Xamarin.Forms.ControlGallery.WindowsPhone/local.html b/Xamarin.Forms.ControlGallery.WindowsPhone/local.html
new file mode 100644
index 0000000..6ef9746
--- /dev/null
+++ b/Xamarin.Forms.ControlGallery.WindowsPhone/local.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<link rel="stylesheet" href="default.css">
+</head>
+<body>
+<h1>Xamarin.Forms</h1>
+<p>This is a local HTML page</p>
+
+</body>
+</html> \ No newline at end of file