commit 0a94ffd5f078a1c8de50d23874fef35679d9400d Author: wenyongda Date: Thu Jun 12 16:46:14 2025 +0800 初始化 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0cbe78a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.vs/ +WinUINotes/bin/ +WinUINotes/obj/ +WinUINotes/.vshistory/ diff --git a/WinUINotes.sln b/WinUINotes.sln new file mode 100644 index 0000000..88b5c18 --- /dev/null +++ b/WinUINotes.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36203.30 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinUINotes", "WinUINotes\WinUINotes.csproj", "{5F69CDC8-B184-45BA-9113-311FB706CF79}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM64 = Debug|ARM64 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|ARM64 = Release|ARM64 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|ARM64.Build.0 = Debug|ARM64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|ARM64.Deploy.0 = Debug|ARM64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|x64.ActiveCfg = Debug|x64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|x64.Build.0 = Debug|x64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|x64.Deploy.0 = Debug|x64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|x86.ActiveCfg = Debug|x86 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|x86.Build.0 = Debug|x86 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Debug|x86.Deploy.0 = Debug|x86 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|ARM64.ActiveCfg = Release|ARM64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|ARM64.Build.0 = Release|ARM64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|ARM64.Deploy.0 = Release|ARM64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|x64.ActiveCfg = Release|x64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|x64.Build.0 = Release|x64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|x64.Deploy.0 = Release|x64 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|x86.ActiveCfg = Release|x86 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|x86.Build.0 = Release|x86 + {5F69CDC8-B184-45BA-9113-311FB706CF79}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {01E53FE8-0292-4B48-AE1E-CE8357700EBE} + EndGlobalSection +EndGlobal diff --git a/WinUINotes/App.xaml b/WinUINotes/App.xaml new file mode 100644 index 0000000..2926fcb --- /dev/null +++ b/WinUINotes/App.xaml @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/WinUINotes/App.xaml.cs b/WinUINotes/App.xaml.cs new file mode 100644 index 0000000..ed69ee4 --- /dev/null +++ b/WinUINotes/App.xaml.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Microsoft.UI.Xaml; +using Microsoft.UI.Xaml.Controls; +using Microsoft.UI.Xaml.Controls.Primitives; +using Microsoft.UI.Xaml.Data; +using Microsoft.UI.Xaml.Input; +using Microsoft.UI.Xaml.Media; +using Microsoft.UI.Xaml.Navigation; +using Microsoft.UI.Xaml.Shapes; +using Windows.ApplicationModel; +using Windows.ApplicationModel.Activation; +using Windows.Foundation; +using Windows.Foundation.Collections; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace WinUINotes +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + public partial class App : Application + { + private Window? _window; + + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + InitializeComponent(); + } + + /// + /// Invoked when the application is launched. + /// + /// Details about the launch request and process. + protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) + { + _window = new MainWindow(); + _window.Activate(); + } + } +} diff --git a/WinUINotes/Assets/LockScreenLogo.scale-200.png b/WinUINotes/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..7440f0d Binary files /dev/null and b/WinUINotes/Assets/LockScreenLogo.scale-200.png differ diff --git a/WinUINotes/Assets/SplashScreen.scale-200.png b/WinUINotes/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000..32f486a Binary files /dev/null and b/WinUINotes/Assets/SplashScreen.scale-200.png differ diff --git a/WinUINotes/Assets/Square150x150Logo.scale-200.png b/WinUINotes/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000..53ee377 Binary files /dev/null and b/WinUINotes/Assets/Square150x150Logo.scale-200.png differ diff --git a/WinUINotes/Assets/Square44x44Logo.scale-200.png b/WinUINotes/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 0000000..f713bba Binary files /dev/null and b/WinUINotes/Assets/Square44x44Logo.scale-200.png differ diff --git a/WinUINotes/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/WinUINotes/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..dc9f5be Binary files /dev/null and b/WinUINotes/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/WinUINotes/Assets/StoreLogo.png b/WinUINotes/Assets/StoreLogo.png new file mode 100644 index 0000000..a4586f2 Binary files /dev/null and b/WinUINotes/Assets/StoreLogo.png differ diff --git a/WinUINotes/Assets/Wide310x150Logo.scale-200.png b/WinUINotes/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 0000000..8b4a5d0 Binary files /dev/null and b/WinUINotes/Assets/Wide310x150Logo.scale-200.png differ diff --git a/WinUINotes/MainWindow.xaml b/WinUINotes/MainWindow.xaml new file mode 100644 index 0000000..2e55fea --- /dev/null +++ b/WinUINotes/MainWindow.xaml @@ -0,0 +1,20 @@ + + + + + + + + + + + diff --git a/WinUINotes/MainWindow.xaml.cs b/WinUINotes/MainWindow.xaml.cs new file mode 100644 index 0000000..ca80218 --- /dev/null +++ b/WinUINotes/MainWindow.xaml.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Microsoft.UI.Xaml; +using Microsoft.UI.Xaml.Controls; +using Microsoft.UI.Xaml.Controls.Primitives; +using Microsoft.UI.Xaml.Data; +using Microsoft.UI.Xaml.Input; +using Microsoft.UI.Xaml.Media; +using Microsoft.UI.Xaml.Navigation; +using Windows.Foundation; +using Windows.Foundation.Collections; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace WinUINotes +{ + /// + /// An empty window that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/WinUINotes/NotePage.xaml b/WinUINotes/NotePage.xaml new file mode 100644 index 0000000..f9178b2 --- /dev/null +++ b/WinUINotes/NotePage.xaml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + +