From 339665db9175607c7f0eeeb8ba15c0ac1f59a7f1 Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Sat, 11 May 2024 23:37:01 -0500 Subject: [PATCH] Begin Zune-themed window --- ZuneModdingHelper/App.xaml | 21 +++++-- ZuneModdingHelper/AppWindow.xaml | 69 ++++++++++++++++++++++ ZuneModdingHelper/AppWindow.xaml.cs | 28 +++++++++ ZuneModdingHelper/Themes/Generic.xaml | 10 ++++ ZuneModdingHelper/ZuneModdingHelper.csproj | 1 + 5 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 ZuneModdingHelper/AppWindow.xaml create mode 100644 ZuneModdingHelper/AppWindow.xaml.cs create mode 100644 ZuneModdingHelper/Themes/Generic.xaml diff --git a/ZuneModdingHelper/App.xaml b/ZuneModdingHelper/App.xaml index 9fb4a2b..e0394bb 100644 --- a/ZuneModdingHelper/App.xaml +++ b/ZuneModdingHelper/App.xaml @@ -2,18 +2,31 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ZuneModdingHelper" - StartupUri="MainWindow.xaml"> + StartupUri="AppWindow.xaml"> - + - + --> + + + + + + + + Assets/ZMH_Icons.ttf#ZMHIcons + + + + + diff --git a/ZuneModdingHelper/AppWindow.xaml b/ZuneModdingHelper/AppWindow.xaml new file mode 100644 index 0000000..7fa5d64 --- /dev/null +++ b/ZuneModdingHelper/AppWindow.xaml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ZuneModdingHelper/AppWindow.xaml.cs b/ZuneModdingHelper/AppWindow.xaml.cs new file mode 100644 index 0000000..ce45343 --- /dev/null +++ b/ZuneModdingHelper/AppWindow.xaml.cs @@ -0,0 +1,28 @@ +using ControlzEx.Behaviors; +using ControlzEx.Controls.Internal; +using System; +using System.Windows; +using System.Windows.Interop; +using System.Windows.Shell; + +namespace ZuneModdingHelper +{ + /// + /// Interaction logic for AppWindow.xaml + /// + public partial class AppWindow + { + private IntPtr _windowHandle; + + public AppWindow() + { + InitializeComponent(); + } + + protected override void OnSourceInitialized(EventArgs e) + { + base.OnSourceInitialized(e); + _windowHandle = new WindowInteropHelper(this).EnsureHandle(); + } + } +} diff --git a/ZuneModdingHelper/Themes/Generic.xaml b/ZuneModdingHelper/Themes/Generic.xaml new file mode 100644 index 0000000..7b0b9ff --- /dev/null +++ b/ZuneModdingHelper/Themes/Generic.xaml @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ZuneModdingHelper/ZuneModdingHelper.csproj b/ZuneModdingHelper/ZuneModdingHelper.csproj index 76d311a..5eb18db 100644 --- a/ZuneModdingHelper/ZuneModdingHelper.csproj +++ b/ZuneModdingHelper/ZuneModdingHelper.csproj @@ -20,6 +20,7 @@ +