【发布时间】:2019-06-28 06:46:20
【问题描述】:
如何使用contains 而不是StartsWith 来实现我的组合框文本搜索
<rf:ComboBox Grid.Row="1"
Grid.Column="5"
Width="200"
ItemsSource="{Binding Source={StaticResource AccountProvider}}"
DisplayMemberPath="Description"
SelectedValuePath="IndRekId"
IsEmptyItemVisible="True"
SelectedValue="{Binding Id, UpdateSourceTrigger=PropertyChanged}"
IsTextSearchEnabled="True"
TextSearch.TextPath="Description"
IsEditable="True"/>
搜索功能有效,但我需要匹配子字符串
【问题讨论】:
-
据我所知,实现这一点的唯一方法是创建一个扩展 ComboBox 的控件并添加您需要的功能。