Jelajahi Sumber

高保真-搜索空状态,下拉菜单修改

zhuyi 2 tahun lalu
induk
melakukan
9820fab38c

+ 1 - 1
PDF Office/Views/BOTA/OutLineControl.xaml

@@ -129,7 +129,7 @@
                 x:Name="NoOutlineStackPanel"
                 VerticalAlignment="Center"
                 Visibility="{Binding Outlinelist.Count, Converter={StaticResource ListCountToVisible}}">
-                <Image Source="pack://application:,,,/PDF Office;component/Resources/BOTA/no_outline.png" />
+                <Image Width="128" Height="128" Source="pack://application:,,,/PDF Office;component/Resources/BOTA/no_outline.png" />
                 <TextBlock
                     Height="22"
                     HorizontalAlignment="Center"

+ 1 - 1
PDF Office/Views/BOTA/SearchContent.xaml

@@ -403,7 +403,7 @@
 
         <Grid x:Name="NoSearch" Grid.Row="0" Grid.RowSpan="3"  Visibility="{Binding SearchItemList.Count, Converter={StaticResource ListCountToVisible}}">
             <StackPanel VerticalAlignment="Center" >
-                <Image Source="pack://application:,,,/PDF Office;component/Resources/BOTA/no search.png" />
+                <Image Width="128" Height="128" Source="pack://application:,,,/PDF Office;component/Resources/BOTA/no search.png" />
                 <TextBlock
                     Height="22"
                     HorizontalAlignment="Center"

+ 5 - 2
PDF Office/Views/BOTA/SearchContent.xaml.cs

@@ -48,7 +48,6 @@ namespace PDF_Office.Views.BOTA
                     HistorySearchText.RemoveAt(0);
                 }
                 HistorySearchText.Add(text.Text);
-                UpDataItem();
             }
         }
 
@@ -106,6 +105,7 @@ namespace PDF_Office.Views.BOTA
             ContextSearchText.PlacementTarget = SearchText;
             ContextSearchText.Placement = System.Windows.Controls.Primitives.PlacementMode.Bottom;
             ContextSearchText.IsOpen = true;
+            UpDataItem();
         }
         private void UpDataItem()
         {
@@ -118,7 +118,10 @@ namespace PDF_Office.Views.BOTA
             }
             ContextSearchText.Items.Clear();
             ContextSearchText.Items.Add(IgnoreItem);
-            ContextSearchText.Items.Add(IgnoreSeparator);
+            if (HistorySearchText.Count > 0)
+            {
+                ContextSearchText.Items.Add(IgnoreSeparator);
+            }
 
             foreach (var item in HistorySearchText)
             {