ListBehavior ClassDW.WPFToolkit Documentation
Gives you some commands when clicking in an ItemsControl or its items.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      DW.WPFToolkit.InteractivityListBehavior

Namespace: DW.WPFToolkit.Interactivity
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class ListBehavior : DependencyObject

The ListBehavior type exposes the following members.

Constructors

  NameDescription
Public methodListBehavior
Initializes a new instance of the ListBehavior class
Top
Methods

  NameDescription
Public methodStatic memberGetAutoDeselect
Gets the value which indicates if the items should be deselected automatically when the area beside the items got single clicked.
Public methodStatic memberGetEmptyAreaClickCommand
Gets the command which will be called when the area beside the items in a list gets single clicked.
Public methodStatic memberGetEmptyAreaClickCommandParameter
Gets the command parameter which will be passed with the EmptyAreaClickCommand.
Public methodStatic memberGetEmptyAreaDoubleClickCommand
Gets the command which will be called when the area beside the items in a list gets double clicked.
Public methodStatic memberGetEmptyAreaDoubleClickCommandParameter
Gets the command parameter which will be passed with the EmptyAreaDoubleClickCommand.
Public methodStatic memberGetItemClickedCommand
Gets the command which will be called when an items in a list gets single clicked.
Public methodStatic memberGetItemClickedCommandParameter
Gets the command parameter which will be passed with the ItemClickedCommand.
Public methodStatic memberGetItemDoubleClickedCommand
Gets the command which will be called when an items in a list gets double clicked.
Public methodStatic memberGetItemDoubleClickedCommandParameter
Gets the command parameter which will be passed with the ItemDoubleClickedCommand.
Public methodStatic memberSetAutoDeselect
Attaches a value which indicates if the items should be deselected automatically when the area beside the items got single clicked.
Public methodStatic memberSetEmptyAreaClickCommand
Attaches the command to be called when the area beside the items in a list gets single clicked.
Public methodStatic memberSetEmptyAreaClickCommandParameter
Attaches the command parameter to be passed with the EmptyAreaClickCommand.
Public methodStatic memberSetEmptyAreaDoubleClickCommand
Attaches the command to be called when the area beside the items in a list gets double clicked.
Public methodStatic memberSetEmptyAreaDoubleClickCommandParameter
Attaches the command parameter to be passed with the EmptyAreaDoubleClickCommand.
Public methodStatic memberSetItemClickedCommand
Attaches the command to be called when an items in a list gets single clicked.
Public methodStatic memberSetItemClickedCommandParameter
Attaches the command parameter to be passed with the ItemClickedCommand.
Public methodStatic memberSetItemDoubleClickedCommand
Attaches the command to be called when an items in a list gets double clicked.
Public methodStatic memberSetItemDoubleClickedCommandParameter
Attaches the command parameter to be passed with the ItemDoubleClickedCommand.
Top
Fields

  NameDescription
Public fieldStatic memberAutoDeselectProperty
Public fieldStatic memberEmptyAreaClickCommandParameterProperty
Public fieldStatic memberEmptyAreaClickCommandProperty
Public fieldStatic memberEmptyAreaDoubleClickCommandParameterProperty
Public fieldStatic memberEmptyAreaDoubleClickCommandProperty
Public fieldStatic memberItemClickedCommandParameterProperty
Public fieldStatic memberItemClickedCommandProperty
Public fieldStatic memberItemDoubleClickedCommandParameterProperty
Public fieldStatic memberItemDoubleClickedCommandProperty
Top
Attached Properties

  NameDescription
Public attached propertyAutoDeselect
Public attached propertyEmptyAreaClickCommand
Public attached propertyEmptyAreaClickCommandParameter
Public attached propertyEmptyAreaDoubleClickCommand
Public attached propertyEmptyAreaDoubleClickCommandParameter
Public attached propertyItemClickedCommand
Public attached propertyItemClickedCommandParameter
Public attached propertyItemDoubleClickedCommand
Public attached propertyItemDoubleClickedCommandParameter
Top
Examples

XAML
<ListBox 
         Interactivity:ListBehavior.ItemDoubleClickedCommand="{Binding ItemDoubleClickedCommand}"

         Interactivity:ListBehavior.ItemClickedCommand="{Binding ItemClickedCommand}"

         Interactivity:ListBehavior.EmptyAreaDoubleClickCommand="{Binding EmptyAreaDoubleClickCommand}"
         Interactivity:ListBehavior.EmptyAreaDoubleClickCommandParameter="Parameter"

         Interactivity:ListBehavior.EmptyAreaClickCommand="{Binding EmptyAreaClickCommand}"
         Interactivity:ListBehavior.EmptyAreaClickCommandParameter="Parameter"

         Interactivity:ListBehavior.AutoDeselect="True"
         />
See Also

Reference