MainWindow 窗口使用 Blazor WebView2: <Border Margin="0,0,0,0" Background="Transparent" BorderThickness="0"[......]继续阅读

2023年11月22日 0条评论 2593点热度 0人点赞 痴者工良 阅读全文

MainWindow window using Blazor WebView2: <Border Margin="0,0,0,0" Background="Transparent"[......]继续阅读

2023年11月22日 0条评论 126点热度 0人点赞 痴者工良 阅读全文

默认 webview2 使用英文语言显示,包括控制台、打印台等地方,都是英文提示,因此可以修改为本地语言。 public static void SetWebviewLanguage(string language = "zh-CN") { v[......]继续阅读

2023年9月14日 0条评论 2104点热度 0人点赞 痴者工良 阅读全文

By default, WebView2 displays in English, including in places like the console and print interface. However, it can be modified to use the local langu[......] 继续阅读

2023年9月14日 0条评论 86点热度 0人点赞 痴者工良 阅读全文

默认 Webview2 会被安装到系统目录,可能会导致程序启动时权限不足,无法使用 Webview2,以及多版本程序之间发生存储目录冲突。 因此需要自定义设置 Webview2 目录,最好就存储在程序安装目录下。 首先修改 App.xaml 文件,添加一行: <Application.[......]继续阅读

2023年9月14日 0条评论 2615点热度 0人点赞 痴者工良 阅读全文

Default WebView2 will be installed in the system directory, which may lead to insufficient permissions when the program starts, preventing the use of[......] 继续阅读

2023年9月14日 0条评论 84点热度 0人点赞 痴者工良 阅读全文