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)
Syntax
public static class ItemsControlExtensions

The ItemsControlExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetDefaultItemCommand
Gets the default item command. See DefaultItemCommand attached property for details.
Public methodStatic memberGetItemContainersT
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 methodStatic memberSetDefaultItemCommand
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 attached 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 attached 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