Back to Devexpress

EditBase.DoubleTap Event

maui-devexpress-dot-maui-dot-editors-dot-editbase-ffea6345.md

latest2.6 KB
Original Source

EditBase.DoubleTap Event

Fires when the user double taps the editor.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public event HandledEventHandler DoubleTap

Event Data

The DoubleTap event's data class is HandledEventArgs. The following properties provide information specific to this event:

PropertyDescription
HandledGets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.

Remarks

Editors raise the following events on user interaction:

  • Tap - Fires when the user taps the editor.
  • DoubleTap - Fires when the user double taps the editor.
  • LongPress - Fires when the user presses and holds the editor.

Example

The following XAML assigns handlers to the Tap, DoubleTap, and LongPress events:

xml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:dxe="clr-namespace:DevExpress.Maui.Editors;assembly=DevExpress.Maui.Editors"
             x:Class="App1.MainPage">
    <StackLayout>
        <dxe:TextEdit Tap="TextEdit_Tap"
                      DoubleTap="TextEdit_DoubleTap"
                      LongPress="TextEdit_LongPress"/>
    </StackLayout>
</ContentPage>
cs
private void TextEdit_Tap(object sender, HandledEventArgs e) {
    (sender as TextEdit).Text = "You tapped me!";
}

private void TextEdit_DoubleTap(object sender, HandledEventArgs e) {
    (sender as TextEdit).Text = "You double tapped me!";
}

private void TextEdit_LongPress(object sender, HandledEventArgs e) {
    (sender as TextEdit).Text = "You pressed me!";
}

See Also

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace