Table of Contents

Class TableViewFilterItem

Namespace
WinUI.TableView
Assembly
WinUI.TableView.dll

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
object
TableViewFilterItem

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

isSelected bool

Indicates whether the filter item is selected.

value object

The value of the filter item.

count int

The count of occurrences for the filter item.

showCount bool

Indicates 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