From dccef49a6d247258d00018abbd0961117e8f89d2 Mon Sep 17 00:00:00 2001 From: Rosmontis_Cloud <2451830085@qq.com> Date: Wed, 1 Jul 2026 15:42:23 +0800 Subject: [PATCH] Initial commit: WebView2 demo project --- App.xaml | 9 + App.xaml.cs | 13 ++ AssemblyInfo.cs | 10 + MainWindow.xaml | 22 ++ MainWindow.xaml.cs | 44 ++++ WebView2Demo.csproj | 15 ++ ...CoreApp,Version=v8.0.AssemblyAttributes.cs | 4 + obj/Debug/net8.0-windows/App.g.cs | 70 ++++++ obj/Debug/net8.0-windows/MainWindow.baml | Bin 0 -> 1661 bytes obj/Debug/net8.0-windows/MainWindow.g.cs | 97 +++++++++ .../WebView2Demo.AssemblyInfo.cs | 24 +++ .../WebView2Demo.AssemblyInfoInputs.cache | 1 + ....GeneratedMSBuildEditorConfig.editorconfig | 13 ++ .../WebView2Demo.GlobalUsings.g.cs | 6 + .../net8.0-windows/WebView2Demo.assets.cache | Bin 0 -> 1477 bytes ...ebView2Demo.csproj.AssemblyReference.cache | Bin 0 -> 4253 bytes ...ebView2Demo.csproj.CoreCompileInputs.cache | 1 + .../WebView2Demo.csproj.FileListAbsolute.txt | 11 + .../net8.0-windows/WebView2Demo.g.resources | Bin 0 -> 1889 bytes .../net8.0-windows/WebView2Demo_Content.g.cs | 14 ++ .../WebView2Demo_MarkupCompile.cache | 20 ++ obj/WebView2Demo.csproj.nuget.dgspec.json | 75 +++++++ obj/WebView2Demo.csproj.nuget.g.props | 18 ++ obj/WebView2Demo.csproj.nuget.g.targets | 6 + obj/project.assets.json | 201 ++++++++++++++++++ obj/project.nuget.cache | 10 + 26 files changed, 684 insertions(+) create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 AssemblyInfo.cs create mode 100644 MainWindow.xaml create mode 100644 MainWindow.xaml.cs create mode 100644 WebView2Demo.csproj create mode 100644 obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs create mode 100644 obj/Debug/net8.0-windows/App.g.cs create mode 100644 obj/Debug/net8.0-windows/MainWindow.baml create mode 100644 obj/Debug/net8.0-windows/MainWindow.g.cs create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfoInputs.cache create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.GeneratedMSBuildEditorConfig.editorconfig create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.assets.cache create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.csproj.AssemblyReference.cache create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.csproj.CoreCompileInputs.cache create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.csproj.FileListAbsolute.txt create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.g.resources create mode 100644 obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs create mode 100644 obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache create mode 100644 obj/WebView2Demo.csproj.nuget.dgspec.json create mode 100644 obj/WebView2Demo.csproj.nuget.g.props create mode 100644 obj/WebView2Demo.csproj.nuget.g.targets create mode 100644 obj/project.assets.json create mode 100644 obj/project.nuget.cache diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..2ba4e10 --- /dev/null +++ b/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..8a81f09 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,13 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WebView2Demo; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} + diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs new file mode 100644 index 0000000..cc29e7f --- /dev/null +++ b/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly:ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..d37b83b --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,22 @@ + + + + + + + +