Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / ICustomFilterAction Interface
Members Example


In This Topic
    ICustomFilterAction Interface
    In This Topic
    This interface is used to customize the data filtering process.
    Syntax
    'Declaration
     
    
    Public Interface ICustomFilterAction 
    'Usage
     
    
    Dim instance As ICustomFilterAction
    public interface ICustomFilterAction 
    Remarks
    The IsItemPassFilter method can be defined using any custom condition; it will then return true or false depending if the input value passes the filter or not.
    Example
    In the following example, the AutoCompleteTextBox's FilterType property is set to Custom so that the CustomFilterAction property can be customized. 
    private class MyCustomFilterAction : ICustomFilterAction
    {
      public bool IsItemPassFilter( object item, string filterText )
      {
        return (string)item == filterText;
      }
    }
    
    autoCompleteTextBox.FilterType = StringFilterType.Custom;
    autoCompleteTextBox.CustomFilterAction = new MyCustomFilterAction();
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also