From dc23416d7e6d31931aa52b283af14339a6023f66 Mon Sep 17 00:00:00 2001 From: ShaoHua <345265198@qqcom> Date: Wed, 11 Mar 2026 20:22:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebView2Demo.slnx | 3 +++ WebView2Demo/App.xaml | 9 +++++++++ WebView2Demo/App.xaml.cs | 14 ++++++++++++++ WebView2Demo/AssemblyInfo.cs | 10 ++++++++++ WebView2Demo/MainWindow.xaml | 13 +++++++++++++ WebView2Demo/MainWindow.xaml.cs | 24 ++++++++++++++++++++++++ WebView2Demo/WebView2Demo.csproj | 15 +++++++++++++++ 7 files changed, 88 insertions(+) create mode 100644 WebView2Demo.slnx create mode 100644 WebView2Demo/App.xaml create mode 100644 WebView2Demo/App.xaml.cs create mode 100644 WebView2Demo/AssemblyInfo.cs create mode 100644 WebView2Demo/MainWindow.xaml create mode 100644 WebView2Demo/MainWindow.xaml.cs create mode 100644 WebView2Demo/WebView2Demo.csproj diff --git a/WebView2Demo.slnx b/WebView2Demo.slnx new file mode 100644 index 0000000..58e9557 --- /dev/null +++ b/WebView2Demo.slnx @@ -0,0 +1,3 @@ + + + diff --git a/WebView2Demo/App.xaml b/WebView2Demo/App.xaml new file mode 100644 index 0000000..2ba4e10 --- /dev/null +++ b/WebView2Demo/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WebView2Demo/App.xaml.cs b/WebView2Demo/App.xaml.cs new file mode 100644 index 0000000..62a68a8 --- /dev/null +++ b/WebView2Demo/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WebView2Demo +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/WebView2Demo/AssemblyInfo.cs b/WebView2Demo/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec827 --- /dev/null +++ b/WebView2Demo/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/WebView2Demo/MainWindow.xaml b/WebView2Demo/MainWindow.xaml new file mode 100644 index 0000000..c4e3e3f --- /dev/null +++ b/WebView2Demo/MainWindow.xaml @@ -0,0 +1,13 @@ + + + + + diff --git a/WebView2Demo/MainWindow.xaml.cs b/WebView2Demo/MainWindow.xaml.cs new file mode 100644 index 0000000..bba31f7 --- /dev/null +++ b/WebView2Demo/MainWindow.xaml.cs @@ -0,0 +1,24 @@ +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace WebView2Demo +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/WebView2Demo/WebView2Demo.csproj b/WebView2Demo/WebView2Demo.csproj new file mode 100644 index 0000000..9072817 --- /dev/null +++ b/WebView2Demo/WebView2Demo.csproj @@ -0,0 +1,15 @@ + + + + WinExe + net10.0-windows + enable + enable + true + + + + + + +