diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-08-03 15:22:14 -0600 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-08-03 14:22:14 -0700 |
commit | b186254d1f4a0547c67f4fd30669df9d4cf36b65 (patch) | |
tree | 6278a0f3217c726aed4e29c2027b10eb61522aeb /Xamarin.Forms.ControlGallery.Windows | |
parent | b60fa6acf84d897d6283310e58b1c6c6365c391c (diff) | |
download | xamarin-forms-b186254d1f4a0547c67f4fd30669df9d4cf36b65.tar.gz xamarin-forms-b186254d1f4a0547c67f4fd30669df9d4cf36b65.tar.bz2 xamarin-forms-b186254d1f4a0547c67f4fd30669df9d4cf36b65.zip |
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.Windows')
-rw-r--r-- | Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png | bin | 0 -> 6990 bytes | |||
-rw-r--r-- | Xamarin.Forms.ControlGallery.Windows/Xamarin.Forms.ControlGallery.Windows.csproj | 3 | ||||
-rw-r--r-- | Xamarin.Forms.ControlGallery.Windows/default.css | 2 | ||||
-rw-r--r-- | Xamarin.Forms.ControlGallery.Windows/local.html | 10 |
4 files changed, 15 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png b/Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png Binary files differnew file mode 100644 index 00000000..361e2782 --- /dev/null +++ b/Xamarin.Forms.ControlGallery.Windows/WebImages/XamarinLogo.png 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 @@ <Content Include="Assets\SplashScreen.scale-100.png" /> <Content Include="Assets\StoreLogo.scale-100.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.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 @@ +<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 |