From e14faecb19b7b2ae0e754b9741e5a8b0699a20e2 Mon Sep 17 00:00:00 2001 From: liufei Date: Tue, 12 Apr 2022 17:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E5=A4=B1=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PannelCard/LeftCardControl.xaml | 11 +- .../PannelCard/LeftCardControl.xaml.cs | 23 ++++ .../PannelCard/RightCardControl.xaml | 124 ++++++++++-------- .../PannelCard/RightCardControl.xaml.cs | 20 +++ 4 files changed, 120 insertions(+), 58 deletions(-) diff --git a/Control/UserControls/PannelCard/LeftCardControl.xaml b/Control/UserControls/PannelCard/LeftCardControl.xaml index e315888..997973f 100644 --- a/Control/UserControls/PannelCard/LeftCardControl.xaml +++ b/Control/UserControls/PannelCard/LeftCardControl.xaml @@ -77,10 +77,11 @@ + BorderThickness="1" + Effect="{DynamicResource EffectShadow2}" + Margin="5,0,0,5" + MouseDown="MyCard_MouseDown" + > @@ -130,7 +131,7 @@ - + + /// 点击菜单后 隐藏搜索框 + /// + /// + /// + private void ListBoxItem_MouseDown(object sender, MouseButtonEventArgs e) + { + if (RunTimeStatus.SEARCH_BOX_SHOW) { + MainWindow.mainWindow.HidedSearchBox(); + } + } + /// + /// 隐藏搜索框 + /// + /// + /// + private void MyCard_MouseDown(object sender, MouseButtonEventArgs e) + { + if (RunTimeStatus.SEARCH_BOX_SHOW) + { + MainWindow.mainWindow.HidedSearchBox(); + } + } } } diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml b/Control/UserControls/PannelCard/RightCardControl.xaml index 18a6d07..acc2c56 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml +++ b/Control/UserControls/PannelCard/RightCardControl.xaml @@ -20,6 +20,14 @@ --> + + + + + + + + - + + + - - - + + - - + + - - - + + - - + - - - - + + + + + + diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml.cs b/Control/UserControls/PannelCard/RightCardControl.xaml.cs index 253a32a..30d96fc 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml.cs +++ b/Control/UserControls/PannelCard/RightCardControl.xaml.cs @@ -603,5 +603,25 @@ namespace GeekDesk.Control.UserControls.PannelCard MainWindow.mainWindow.HidedSearchBox(); } } + + /// + /// 设置光标 + /// + /// + /// + private void CursorPanel_MouseEnter(object sender, MouseEventArgs e) + { + this.Cursor = Cursors.Hand; + } + + /// + /// 设置光标 + /// + /// + /// + private void CursorPanel_MouseLeave(object sender, MouseEventArgs e) + { + this.Cursor = Cursors.Arrow; + } } }