Composing HTML with XAML

WebView can be seamlessly blended with other XAML elements and supports transforms and projections. This is demonstrated with the following XAML, shown in Figure 14.28:

<Page ...>   <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">     <!-- Behind the WebView -->     <Rectangle Fill="Red" HorizontalAlignment="Stretch" Height="600"/>     <WebView Source="http://xbox.com" Opacity =".5">      <WebView.Projection>        <PlaneProjection RotationY="30"/>      </WebView.Projection >     </WebView>     <!-- In front of the WebView -->     <Rectangle Fill="Blue" HorizontalAlignment="Stretch" Margin="200,0"                Height="200"/>   </Grid> </Page>

FIGURE 14.28 ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.