Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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 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