How to enable Drag gesture on Android plateform with .net MAUI ?

Pilou 0 Reputation points
2023-12-01T13:12:48.4633333+00:00

Hello

I made a simple MAUI c# project with an implementation of drag and drop in my MainPage

https://github.com/pierre-yves-cmd/montestdd

The sample work well on Windows Plateform but on Android, the drag gesture seem to be not triggered.

When i use XAML code, it works . But here i'm using generated code in the code-behind. May be i missing something?

Regards

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,199 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,619 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pilou 0 Reputation points
    2023-12-01T21:07:25.8433333+00:00

    ok. Just have to long press to initiate drag starting ... My bad

    0 comments No comments