From 73ad1cd3086ab2490465b0f6a1aa91888831454b Mon Sep 17 00:00:00 2001 From: lihanbo Date: Wed, 5 Mar 2025 09:00:44 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=92=8C=E5=8A=9F=E8=83=BD=E5=A2=9E=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 `AiMessageControll.xaml` 中添加了 `hc:Divider` 控件,调整输入区域布局为 `DockPanel`,并简化发送消息界面。 在 `ImportExcelPage.xaml` 中新增 `DataGridContextMenu` 数据模板,优化 `DataGrid` 的右键菜单功能,并调整 `VirtualizingPanel` 属性。 使用 `hc:Card` 替代 `GridSplitter`,重新组织参数配置布局。 在 `ImportExcelPage.xaml.cs` 中添加按钮事件处理程序以切换配置面板显示状态。 在 `ImportViewModel.cs` 中新增 `_showConfig` 属性以控制配置信息的显示状态。 --- .../Views/Components/AiMessageControll.xaml | 64 ++++--- .../Views/Pages/ImportExcelPage.xaml | 166 ++++++++++-------- .../Views/Pages/ImportExcelPage.xaml.cs | 5 + .../Views/ViewModels/ImportViewModel.cs | 7 + 4 files changed, 143 insertions(+), 99 deletions(-) diff --git a/src/ExcelHelper/Views/Components/AiMessageControll.xaml b/src/ExcelHelper/Views/Components/AiMessageControll.xaml index 9bbf889..f6fb8b7 100644 --- a/src/ExcelHelper/Views/Components/AiMessageControll.xaml +++ b/src/ExcelHelper/Views/Components/AiMessageControll.xaml @@ -3,6 +3,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:local="clr-namespace:ExcelHelper.Views.Components" xmlns:local1="clr-namespace:ExcelHelper.Converter" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -99,6 +100,12 @@ Foreground="#99000000" Text="{Binding Timestamp, StringFormat='{}{0:HH:mm}'}" /> + @@ -107,46 +114,53 @@ - - - - - - - + + - + + + + + + +