<Window x:Class="WebView2Demo.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:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
        mc:Ignorable="d"
        Title="无言势字幕 - WebView2 Demo" Height="500" Width="450"
        Background="#0a0a0a">
    <Grid>
        <!-- WebView2 控件 -->
        <wv2:WebView2 x:Name="WebView"
                      Source="https://www.baidu.com"/>

        <!-- 底部按钮栏 -->
        <StackPanel VerticalAlignment="Bottom" Background="#141414" Height="50">
            <Button Content="刷新页面" Click="RefreshPage"
                    Background="#1e1e1e" Foreground="White"
                    Padding="15,5" Margin="10"/>
        </StackPanel>
    </Grid>
</Window>
