From e589d228c0d1ae24ad055e0049c0a61a9e436d95 Mon Sep 17 00:00:00 2001 From: Rosmontis_Cloud <2451830085@qq.com> Date: Wed, 1 Jul 2026 16:32:40 +0800 Subject: [PATCH] Add WebView2Demo project --- WebView2Demo | 1 - WebView2Demo/App.xaml | 9 +++++++ WebView2Demo/App.xaml.cs | 13 ++++++++++ WebView2Demo/AssemblyInfo.cs | 10 ++++++++ WebView2Demo/MainWindow.xaml | 22 ++++++++++++++++ WebView2Demo/MainWindow.xaml.cs | 44 ++++++++++++++++++++++++++++++++ WebView2Demo/README.md | 43 +++++++++++++++++++++++++++++++ WebView2Demo/WebView2Demo.csproj | 15 +++++++++++ 8 files changed, 156 insertions(+), 1 deletion(-) delete mode 160000 WebView2Demo 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/README.md create mode 100644 WebView2Demo/WebView2Demo.csproj diff --git a/WebView2Demo b/WebView2Demo deleted file mode 160000 index 1d85cb1..0000000 --- a/WebView2Demo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1d85cb160f81d5a41125d348f97c01b2db0a09b4 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..8a81f09 --- /dev/null +++ b/WebView2Demo/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/WebView2Demo/AssemblyInfo.cs b/WebView2Demo/AssemblyInfo.cs new file mode 100644 index 0000000..cc29e7f --- /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..d37b83b --- /dev/null +++ b/WebView2Demo/MainWindow.xaml @@ -0,0 +1,22 @@ + + + + + + + +