Skip to content

SwipeView Threshold changes width and offset of the side menu (when visible) #6016

Description

@janseris

Description

Visual Studio Version 17.2.0 Preview 3.0

I tried SwipeView in a MAUI App from default template and added code from docs.

Two issues:

  1. Threshold value changes Swipe menu width. Threshold should should only change the trigger movement size (to open the side menu), am I right? That's what the docs say
  2. Threshold value changes the offset of the main content when the menu is open

4 screenshots:
Threshold not specified
Threshold 1 DIP
Threshold 100 DIP
Threshold 200 DIP

Expected behavior:

  • Threshold only influences the amount of sweep distance needed for the menu to show
  • menu does not partially overlay the content (transparently) (in this case, the page content)
  • menu width does not change with Threshold

What I am trying to achieve - swipable left and right menu:
image

Steps to Reproduce

New MAUI App
Wrap the ContentPage content in MainPage.xaml into a SwipeView from docs: https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/swipeview

image

Sample project:
MauiApp1.zip

Threshold not set

Threshold not set

Threshold 1

Threshold 1

Threshold 100

Threshold 100

Threshold 200

Threshold 200

Version with bug

Release Candidate 1

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11 (API 30)

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions