Class TableViewFilterItem
Represents a filter item used in the options flyout of a TableViewColumnHeader.
[WinRTRuntimeClassName("Microsoft.UI.Xaml.Data.INotifyPropertyChanged")]
[WinRTExposedType(typeof(WinUI_TableView_TableViewFilterItemWinRTTypeDetails))]
public class TableViewFilterItem
- Inheritance
-
objectTableViewFilterItem
Constructors
TableViewFilterItem(bool, object?, int, bool)
Initializes a new instance of the FilterItem class.
public TableViewFilterItem(bool isSelected, object? value, int count = 1, bool showCount = false)
Parameters
isSelectedboolIndicates whether the filter item is selected.
valueobjectThe value of the filter item.
countintThe count of occurrences for the filter item.
showCountboolIndicates whether to show the count of occurrences.
Properties
Count
Gets or sets the count of occurrences for the filter item.
public int Count { get; set; }
Property Value
- int
IsSelected
Gets or sets a value indicating whether the filter item is selected.
public bool IsSelected { get; set; }
Property Value
- bool
ShowCount
Gets a value indicating whether to show the count for the filter item.
public bool ShowCount { get; }
Property Value
- bool
Value
Gets the value of the filter item.
public object? Value { get; }
Property Value
- object
ValueText
Gets the text representation of the filter item's value, or a localized string for blank values if the value is null.
public string ValueText { get; }
Property Value
- string
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged
Event Type
- PropertyChangedEventHandler