Skip to content

romshiri/sizeable-webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Sizeable WebView

Sizeable WebView is a fully featured Windows Phone 8.1 WebView control with the following additions:

  • Auto height setup according to the web view's content length.
  • An option to disable view interactions: zooming, scrolling, etc.

Installation

  • Clone (or download) the project.
  • Add the project (or just the .cs and .xaml files) to your existing solution.
  • Add a reference in your Windows Phone project.

Usage

At the desirable page, add the following xaml (don't forget to add the namespace):

<components:SizeableWebView x:Name="contentAwareWebView" IsContentAware="True" InteractionsEnabled="False" />

IsContentAware - set to true in order to set the height of the control according to the HTML content's length. InteractionsEnabled - set to false in order to disable view interactions (zooming, scrolling etc).
WebView - an access propery for the native WebView control.

Then, use the following function in order to navigate to your HTML content:

contentAwareWebView.NavigateToContent(yourHTMLContent);

Best for applications that consume content from RSS/WebService as HTML.

License

MIT

About

Fully featured WebView control for Windows Phone 8.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages