Xamarin.forms: [Bug] Can't use swipeview on UWP with a mouse

Created on 11 Feb 2020  Â·  5Comments  Â·  Source: xamarin/Xamarin.Forms

Description

Swipeview works on touchscreen display with UWP put you can't open it with a mouse

Steps to Reproduce

  1. Create a swipview in Xamarin Forms
  2. Run the project on UWP
  3. Try to use a mouse to use the swipeview

Expected Behavior

The swipeview opens to display whatever is underneath

Actual Behavior

Nothing happens. The swipeview doesn't detect the mouse as a swipe

Is this how it's supposed to work? Can we add UWP mouse support?

swipeview 6 UWP enhancement âž•

Most helpful comment

I've changed this over to an enhancement. We're using the native WinUI SwipeControl and that control only works with touch gestures not the mouse so we would need to extend it.

All 5 comments

SwipeView in UWP makes use of the SwipeControl control available in WinUI https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.swipecontrol
The behavior you describe is the expected and there are requests to make it compatible with mouse: https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/1828

I will check SwipeControl to see if we can do something to make it compatible with mouse.

I've changed this over to an enhancement. We're using the native WinUI SwipeControl and that control only works with touch gestures not the mouse so we would need to extend it.

Any news on this? I'm trying to programatically open the swipe view in UWP, and it just doesn't work, no matter what I try.

maybe we can use slidecontrol instead of swipe control like in the other issue mentioned. it is just deprecated but not removed.

Is that actually working on a windows 10 touch based devices like surfaces? anyone tested it? Using simulator it doesn't seem to be working although i used the touch mode

Was this page helpful?
0 / 5 - 0 ratings