首页 前端知识 【C#】WPF加载浏览器

【C#】WPF加载浏览器

2024-05-19 09:05:25 前端知识 前端哥 770 503 我要收藏

结果展示

下载SDK

前端代码

红色框住的为添加代码

<Window x:Class="WPFwebview.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:WPFwebview"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<wv2:WebView2 Name="wv2" Source="https://www.baidu.com/" />
</Grid>
</Window>
复制

转载请注明出处或者链接地址:https://www.qianduange.cn//article/8838.html
评论
还可以输入200
共0条数据,当前/页
发布的文章

JQuery中的load()、$

2024-05-10 08:05:15

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!