MaterialDesignToolbox和Combobox,带有Filter Startwith

时间:2018-12-13 09:23:34

标签: c# wpf

我正在使用MaterialDesignToolbox中的组合框。 我找不到像Telerik这样的使用Startwith进行过滤的简单方法

<ComboBox
 Width="250"
 Margin="25,0,0,0"
 VerticalAlignment="Bottom"
 materialDesign:HintAssist.Hint="{DynamicResource Tbl03Regnum-RegnumName}"
 IsSynchronizedWithCurrentItem="True"
 ItemsSource="{Binding Tbl03RegnumsAllList}"
 SelectedValue="{Binding SelectedItem.(models:Tbl03Regnum.RegnumID), ElementName=Tbl06PhylumsList, Mode=TwoWay}"
 SelectedValuePath="RegnumID"
 Style="{StaticResource MaterialDesignFloatingHintComboBox}"
 VirtualizingStackPanel.IsVirtualizing="True">
 <ComboBox.ItemTemplate>
  <DataTemplate>
    <StackPanel Orientation="Horizontal">
      <TextBlock Text="{Binding (models:Tbl03Regnum.RegnumName)}" />
    </StackPanel>
   </DataTemplate>
  </ComboBox.ItemTemplate>
</ComboBox>

enter image description here

0 个答案:

没有答案