Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.39 KB

WebViewExtensions.md

File metadata and controls

38 lines (27 loc) · 1.39 KB
title author description keywords
WebViewExtensions
nmetulev
The Windows Community Toolkit WebView extensions allow attaching HTML content to WebView through XAML directly or through Binding
windows 10, uwp, windows community toolkit, uwp community toolkit, uwp toolkit, WebViewExtensions, webview, extensions

WebViewExtensions

The WebViewExtensions allows attaching HTML content to WebView.

Syntax

// Attach HTML content directly to WebView
<WebView extensions:WebViewExtensions.Content="{Binding HtmlContent}" />

// Attach Uri directly to WebView
<WebView extensions:WebViewExtensions.ContentUri="{Binding ContentUri}" />

Attached Properties

Property Type Description
Content string Get or set HTML from the WebView through string
ContentUri Uri Get or set HTML from the WebView through Uri

Requirements

Device family Universal, 10.0.16299.0 or higher
Namespace Microsoft.Toolkit.Uwp.UI.Extensions
NuGet package Microsoft.Toolkit.Uwp.UI

API