| Visual Basic (Declaration) | |
|---|---|
Public Property AutoFilterControlStyle As Style | |
| C# | |
|---|---|
public Style AutoFilterControlStyle {get; set;} | |
Return Value
A Style representing the style that will be used by the column's associated AutoFilterControl.All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to provide the ShipCountry column with a new style for its associated AutoFilterControl that will only allow single selection.
| XAML | Copy Code |
|---|---|
<Grid> | |
- It is not possible to provide an implicit style targeting AutoFilterControl.
- A ListBox or Selector-base control identified as the PART_DistinctValuesHost template part must be specified when redefining the auto-filter control's template.
Supported Frameworks: Microsoft .NET Framework version 3.5
Copy Code