-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
34 lines (34 loc) · 1.65 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<Window x:Class="WebView2NavigationEventsTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WebView2NavigationEventsTest"
xmlns:WV="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
mc:Ignorable="d"
Title="MainWindow"
Height="450"
Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border BorderThickness="5">
<StackPanel Grid.Row="0"
Orientation="Horizontal">
</StackPanel>
</Border>
<WV:WebView2 Grid.Row="1"
x:Name="WebView"
Source="https://www.google.com/search?q=webview2"
CoreWebView2InitializationCompleted="WebView_CoreWebView2InitializationCompleted">
<WV:WebView2.CreationProperties>
<WV:CoreWebView2CreationProperties BrowserExecutableFolder="C:\Program Files (x86)\Microsoft\Edge Dev\Application\91.0.845.2" />
</WV:WebView2.CreationProperties>
<!--<WV:WebView2.CreationProperties>
<WV:CoreWebView2CreationProperties BrowserExecutableFolder="C:\Program Files (x86)\Microsoft\Edge\Application\89.0.774.75" />
</WV:WebView2.CreationProperties>-->
</WV:WebView2>
</Grid>
</Window>