From f2f0ec7241ae25dc3a0c774f66c93ced6fb67abb Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Thu, 23 Jan 2025 23:03:22 +0000 Subject: [PATCH] add close confirmation message --- .../Editor/BootstrapperEditorWindow.xaml | 4 +- .../Editor/BootstrapperEditorWindow.xaml.cs | 40 ++++++++++++++----- .../BootstrapperEditorWindowViewModel.cs | 3 ++ 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml b/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml index 93952ac7a..be25dc018 100644 --- a/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml +++ b/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml @@ -15,6 +15,7 @@ d:DataContext="{d:DesignInstance dmodels:BootstrapperEditorWindowViewModel, IsDesignTimeCreatable=True}" Background="{ui:ThemeResource ApplicationBackgroundBrush}" + Closing="OnClosing" ExtendsContentIntoTitleBar="True" mc:Ignorable="d"> @@ -40,8 +41,7 @@ Margin="10,10,10,0" ShowLineNumbers="True" Style="{StaticResource NewTextEditor}" - SyntaxHighlighting="XML" - TextChanged="OnCodeChanged" /> + SyntaxHighlighting="XML" />