Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xaml source to webview2 page #1107

Merged
merged 1 commit into from
Oct 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions WinUIGallery/ControlPages/WebView2Page.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@
<controls:WebView2 x:Name="MyWebView2" Source="https://microsoft.github.io/microsoft-ui-xaml/" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" MinHeight="200" MinWidth="200"/>
</Grid>
</local:ControlExample.Example>

<local:ControlExample.Xaml>
<x:String xml:space="preserve">
&lt;controls:WebView2 x:Name="MyWebView2" Source="https://microsoft.github.io/microsoft-ui-xaml/" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" MinHeight="200" MinWidth="200"/&gt;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Insert line breaks to make this easier to read.

</x:String>
</local:ControlExample.Xaml>
</local:ControlExample>
</Page>