From a1fcd71d1630e2f8ba3f65322a56eb6a0c8ea18d Mon Sep 17 00:00:00 2001 From: Ionite Date: Wed, 24 May 2023 16:53:58 -0400 Subject: [PATCH] Add custom title and icons for nav menu --- StabilityMatrix/MainWindow.xaml | 54 ++++++++++++++++++++++++------ StabilityMatrix/MainWindow.xaml.cs | 12 +++++-- 2 files changed, 52 insertions(+), 14 deletions(-) diff --git a/StabilityMatrix/MainWindow.xaml b/StabilityMatrix/MainWindow.xaml index 39ce9e5d..2353e407 100644 --- a/StabilityMatrix/MainWindow.xaml +++ b/StabilityMatrix/MainWindow.xaml @@ -7,17 +7,49 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> - + + + + + + + + + + + + - - - - + + + + + + - - + + + + + + + + + + + + \ No newline at end of file diff --git a/StabilityMatrix/MainWindow.xaml.cs b/StabilityMatrix/MainWindow.xaml.cs index f332842f..c41ca420 100644 --- a/StabilityMatrix/MainWindow.xaml.cs +++ b/StabilityMatrix/MainWindow.xaml.cs @@ -2,6 +2,11 @@ using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using System; using System.Linq; +using Windows.ApplicationModel.Core; +using Windows.UI.ViewManagement; +using Microsoft.UI; +using Microsoft.UI.Windowing; +using WinRT.Interop; namespace StabilityMatrix { @@ -12,10 +17,11 @@ namespace StabilityMatrix { public MainWindow() { - this.InitializeComponent(); + InitializeComponent(); + Title = "Stability Matrix"; + WindowOptions.TrySetCustomTitle(this, AppTitleBar); } - - + private void ButtonNavInstallPage_OnClick(object sender, RoutedEventArgs e) { ContentFrame.Navigate(typeof(InstallPage));