protected override bool FilterItems(object obj) { if (obj is AffixDetailsViewModel data) { if (string.IsNullOrEmpty(ItemFilter)) { return(true); } return(Regex.IsMatch(data.Label, ItemFilter.ToRegex(), RegexOptions.Singleline | RegexOptions.IgnoreCase)); } return(false); }