xaml < /p>
Code: Select all
< /code>
Relevante Ansichtsmodel -Code < /p>
public string FilterText
{
get => filterText;
set
{
filterText = value;
OnPropertyChanged(nameof(FilterText));
}
}
< /code>
Aus dem Code hinter < /p>
private void e3BomPartsCollectionView_Filter(object sender, FilterEventArgs e)
{
E3BomPart e3BomPart = e.Item as E3BomPart;
if (e3BomPart != null && this.tb_filtertext.Text != "")
{
bool test = Fuzz.PartialTokenSetRatio(this.tb_filtertext.Text.ToUpper(),e3BomPart.Key) > 90;
e.Accepted = test;
}