Gets the wildcard filter.

Namespace: Dapfor.Wpf.Filters
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

Syntax

C#
public static DataTemplate WildcardFilter { get; }
Visual Basic
Public Shared ReadOnly Property WildcardFilter As DataTemplate
	Get
Visual C++
public:
static property DataTemplate^ WildcardFilter {
	DataTemplate^ get ();
}
F#
static member WildcardFilter : DataTemplate with get

Property Value

Type: DataTemplate
The wildcard filter.

Remarks

The filter uses regular expression for row filtering. If the filter does not use wildcards, the following pattern is applied by default: *<filter>*.

This filter can be set for a column directly in xaml code:

 Copy imageCopy
<Window x:Class="SomeApplication.MainWindow"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       Title="MainWindow" 
       xmlns:my="clr-namespace:Dapfor.Wpf.Controls;assembly=Dapfor.Wpf"
       xmlns:filters="clr-namespace:Dapfor.Wpf.Filters;assembly=Dapfor.Wpf">


   <my:GridControl>
       <my:GridControl.Headers>
           <my:Header>
               <my:Header.Columns>
                   <my:Column Id="idMyColumn" Title="MyColumn" FilterTemplate="{x:Static filters:FilterFactory.WildcardFilter}" FilterAlignment="Stretch"/>
               </my:Header.Columns>
           </my:Header>
       </my:GridControl.Headers>
   </my:GridControl>
</Window>

It's also possible to set the filter programmatically:

 Copy imageCopy
Column column = gridControl1.Headers[0]["idMyColumn"];
column.FilterTemplate = FilterFactory.WildcardFilter;

See Also