From b186254d1f4a0547c67f4fd30669df9d4cf36b65 Mon Sep 17 00:00:00 2001 From: "E.Z. Hart" Date: Wed, 3 Aug 2016 15:22:14 -0600 Subject: 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 isn't in the HTML string --- .../WebImages/XamarinLogo.png | Bin 0 -> 6990 bytes .../Xamarin.Forms.ControlGallery.Windows.csproj | 3 +++ Xamarin.Forms.ControlGallery.Windows/default.css | 2 ++ Xamarin.Forms.ControlGallery.Windows/local.html | 10 ++++++++++ 4 files changed, 15 insertions(+) create mode 100644 Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png create mode 100644 Xamarin.Forms.ControlGallery.Windows/default.css create mode 100644 Xamarin.Forms.ControlGallery.Windows/local.html (limited to 'Xamarin.Forms.ControlGallery.Windows') diff --git a/Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png b/Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png new file mode 100644 index 00000000..361e2782 Binary files /dev/null and b/Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png differ diff --git a/Xamarin.Forms.ControlGallery.Windows/Xamarin.Forms.ControlGallery.Windows.csproj b/Xamarin.Forms.ControlGallery.Windows/Xamarin.Forms.ControlGallery.Windows.csproj index c93c45b9..aa8f862f 100644 --- a/Xamarin.Forms.ControlGallery.Windows/Xamarin.Forms.ControlGallery.Windows.csproj +++ b/Xamarin.Forms.ControlGallery.Windows/Xamarin.Forms.ControlGallery.Windows.csproj @@ -189,7 +189,10 @@ + + + diff --git a/Xamarin.Forms.ControlGallery.Windows/default.css b/Xamarin.Forms.ControlGallery.Windows/default.css new file mode 100644 index 00000000..9e32b419 --- /dev/null +++ b/Xamarin.Forms.ControlGallery.Windows/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.Windows/local.html b/Xamarin.Forms.ControlGallery.Windows/local.html new file mode 100644 index 00000000..6ef9746b --- /dev/null +++ b/Xamarin.Forms.ControlGallery.Windows/local.html @@ -0,0 +1,10 @@ + + + + + +

Xamarin.Forms

+

This is a local HTML page

+ + + \ No newline at end of file -- cgit v1.2.3