Click or drag to resize

ItemsControlExtensions Class

Extensions and helpers for the ItemsControl or derived classes.
Inheritance Hierarchy
SystemObject
  TomsToolbox.WpfItemsControlExtensions

Namespace: TomsToolbox.Wpf
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static class ItemsControlExtensions

The ItemsControlExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodGetDefaultItemCommand Gets the default item command. See DefaultItemCommand attached property for details.
Public Extension MethodGetItemContainersT Gets the item containers for a items control.
Public methodStatic memberGetRefreshOnSourceChanges Gets the object that will be observed for changes. A change of the object will trigger a refresh on the collection view of the attached items control.
Public Extension MethodSetDefaultItemCommand Sets the default item command. See DefaultItemCommand attached property for details.
Public methodStatic memberSetRefreshOnSourceChanges Sets the object that will be observed for changes. A change of the object will trigger a refresh on the collection view of the attached items control.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultItemCommandProperty Identifies the DefaultItemCommand attached property
Public fieldStatic memberRefreshOnSourceChangesProperty Identifies the RefreshOnSourceChanges attached property
Top
Attached Properties
 NameDescription
Public propertyDefaultItemCommand The default item command is the command that will be executed when an item of the items control has received a mouse double click or enter key. It is not executed when the double-click is on the background or on the scrollbar. This command avoids the ubiquitous wrong implementations as well as code duplication when handling double-clicks in items controls like the ListBox

The command parameter for the command is the item that has been clicked.

Public propertyRefreshOnSourceChanges The object that will be observed for changes. A change of the object will trigger a refresh on the collection view of the attached items control.
Top
See Also