From a5c55fedc31cda2c7a324c73884f0d449912ee7a Mon Sep 17 00:00:00 2001 From: PeterZhong Date: Mon, 30 Dec 2024 19:38:12 +0800 Subject: [PATCH 1/2] Modify to Modern UI --- GisDevelop_Exp/App.xaml | 10 +- GisDevelop_Exp/AttributeQuery.xaml | 30 +-- .../ExtentLocationQueryResultsWindow.xaml | 8 +- GisDevelop_Exp/GisDevelop_Exp.csproj | 4 + .../LocationQueryResultsWindow.xaml | 8 +- GisDevelop_Exp/MainWindow.xaml | 207 +++++++++++------- GisDevelop_Exp/MainWindow.xaml.cs | 84 ++++--- GisDevelop_Exp/OptionsWindow.xaml | 6 +- GisDevelop_Exp/QueryResultWindow.xaml | 8 +- 9 files changed, 222 insertions(+), 143 deletions(-) diff --git a/GisDevelop_Exp/App.xaml b/GisDevelop_Exp/App.xaml index f7b302e..5b345a8 100644 --- a/GisDevelop_Exp/App.xaml +++ b/GisDevelop_Exp/App.xaml @@ -3,8 +3,14 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:GisDevelop_Exp" Startup="Application_Startup" - StartupUri="MainWindow.xaml"> + StartupUri="MainWindow.xaml" + xmlns:ui="http://schemas.modernwpf.com/2019"> - + + + + + + diff --git a/GisDevelop_Exp/AttributeQuery.xaml b/GisDevelop_Exp/AttributeQuery.xaml index d5c96d8..77afc7d 100644 --- a/GisDevelop_Exp/AttributeQuery.xaml +++ b/GisDevelop_Exp/AttributeQuery.xaml @@ -5,23 +5,27 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:GisDevelop_Exp" mc:Ignorable="d" - Title="按属性查询" Height="323" Width="422" - Loaded="AttributeQuery_OnLoaded"> + ResizeMode="NoResize" + Title="按属性查询" Height="330" Width="422" + Loaded="AttributeQuery_OnLoaded" + xmlns:ui="http://schemas.modernwpf.com/2019" +ui:WindowHelper.UseModernWindowStyle="True" +ui:ThemeManager.RequestedTheme="Light">