You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] TouchBehavior does not work on Button in Windows #2538
TouchBehavior does not seem to work on Button controls in Windows. Works as expected on Android. Command (short click/tap) and LongPressCommand are nether one triggered when using TouchBehavior on a Button. Moving the TouchBehavior definition up to a Label (and changing it to a Label type obviously) works as expected on both platforms. Moving it to an Image also works on both platforms. Moving it back to the Button results in the short and long taps being registered on Android only, and not Windows.
Expected Behavior
I expect that TouchBehavior (particularly Long Presses) work the same way across platforms.
Steps To Reproduce
Open attached project (which is a File New project with the DotNet bot image and I added some TouchBehaviors).
Build and run Android version.
Observe that a quick tap and a LongPress works on the Button, the bottom Label, and the Image. Both TouchBehaviors work on all 3 controls on Android.
Build and run Windows version.
Observe that clicking the Label and the Image works as expected. Also observe that a LongPress (with the mouse click) also works as expected.
Observe that clicking the Button does not work, nor does a LongPress. Neither TouchBehavior works on the Button in Windows.
Activity
Add device tests for platform-specific code, run them in CI, and fix …