Skip to main content

DXCollectionView.LongPressCommand Property

Gets or sets a command executed when a user taps and holds an item within the collection view.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

Declaration

public ICommand LongPressCommand { get; set; }

Property Value

Type Description
ICommand

A command that exposes the ICommand interface.

Remarks

The TapCommand‘s CommandParameter property is hidden and its value is internally set to the ItemsSource‘s object used to create the tapped CollectionView item. You can access the item in the command if you define the command with a parameter.

You can also use the following commands to respond to different gesture types:

For more information about using commands in MAUI, refer to the following page: Commanding.

See Also