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; + } } }