1. 去掉tab搜索

2. 添加ListBox搜索
dev2.0
陈伟 2025-04-25 10:29:21 +08:00
parent 773be237f2
commit ef5ffb1c74
1 changed files with 27 additions and 21 deletions

View File

@ -33,9 +33,12 @@
Visibility="{Binding DownViewModel.Tab0Visibility}"
Style="{DynamicResource {x:Static h:ButtonKeys.Accent}}" />
</h:Row>
<TabControl SelectedIndex="{Binding DownViewModel.TabIndex, Mode=TwoWay}">
<TabControl h:Cattach.UseSearch="False" SelectedIndex="{Binding DownViewModel.TabIndex, Mode=TwoWay}">
<TabItem Header="{Binding DownViewModel.RunningTaskHeader}">
<ListBox h:Cattach.ItemHeight="Auto"
<ListBox
h:Cattach.UseSearch="True"
h:Cattach.SearchUseHistory="True"
h:Cattach.ItemHeight="Auto"
ItemsSource="{Binding DownViewModel.RunningTasks}"
Style="{DynamicResource {x:Static h:ListBoxKeys.Single}}"
VirtualizingPanel.CacheLength="15"
@ -142,7 +145,10 @@
<TextBlock Grid.Column="4" Text="大小" />
<TextBlock Grid.Column="8" Text="时间" />
</h:Row>
<ListBox h:Cattach.ItemHeight="Auto"
<ListBox
h:Cattach.UseSearch="True"
h:Cattach.SearchUseHistory="True"
h:Cattach.ItemHeight="Auto"
ItemsSource="{Binding DownViewModel.FinishedTasks}"
Style="{DynamicResource {x:Static h:ListBoxKeys.Single}}"
VirtualizingPanel.CacheLength="15"