From 00657550b2603cf37aedfacdeb2d4ca7b65a886a Mon Sep 17 00:00:00 2001 From: liufei Date: Tue, 10 May 2022 16:23:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=A2=9E=E5=8A=A0=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E8=BF=87=E6=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PannelCard/RightCardControl.xaml | 73 ++++++++++--------- MainWindow.xaml.cs | 2 + 2 files changed, 39 insertions(+), 36 deletions(-) diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml b/Control/UserControls/PannelCard/RightCardControl.xaml index e55d4cc..685bfbf 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml +++ b/Control/UserControls/PannelCard/RightCardControl.xaml @@ -175,43 +175,44 @@ VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.IsContainerVirtualizable="True" > - - + + - - - + + + - - - - - - - - - - + + + + + + + + + + - - - + + + - - - + + - - + + - - - + + - - + - - - - - - + + + + + + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 4d9acb1..ed7c425 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -74,6 +74,7 @@ namespace GeekDesk private void SearchBox_TextChanged(object sender, TextChangedEventArgs e) { string inputText = SearchBox.Text.ToLower(); + RightCard.VerticalUFG.Visibility = Visibility.Collapsed; if (!string.IsNullOrEmpty(inputText)) { SearchIconList.IconList.Clear(); @@ -95,6 +96,7 @@ namespace GeekDesk { SearchIconList.IconList.Clear(); } + RightCard.VerticalUFG.Visibility = Visibility.Visible; } public void HidedSearchBox()