DoubleClickToCommand

Name Value
Assembly Catel.MVVM
Namespace Catel.Windows.Interactivity
Available on .NET Framework 4.5, .NET Framework 4.6
public class DoubleClickToCommand : CommandBehaviorBase<FrameworkElement>

Base types CommandBehaviorBase

This behavior allows any element that supports a double click to command for every element that supportsMouseLeftButtonDown.

Fields

AutoFixListBoxItemTemplateProperty

The property definition for the AutoFixListBoxItemTemplate dependency property.

Constructors

DoubleClickToCommand()

Initializes a new instance of the DoubleClickToCommand class.

DoubleClickToCommand(Action action, int doubleClickMilliseconds)

Initializes a new instance of the DoubleClickToCommand class.

Parameters

Name Description
action The action to execute on double click. This is very useful when the behavior is added via code and an action must be invoked instead of a command.
doubleClickMilliseconds The double click acceptance window in milliseconds.

Properties

AutoFixListBoxItemTemplate

Gets or sets a value indicating whether to automatically fix the ItemTemplate in a ListBox.

Methods


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion