Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [UWP] ScrollView inside SwipeView prevents swiping #14890

Open
ggutschi opened this issue Nov 16, 2021 · 3 comments
Open

[Bug] [UWP] ScrollView inside SwipeView prevents swiping #14890

ggutschi opened this issue Nov 16, 2021 · 3 comments

Comments

@ggutschi
Copy link

Description

On UWP a SwipeView containing a ScrollView does not display the SwipeItems on swipe.

Steps to Reproduce

  1. Create a XAML page with the following code:

<SwipeView BackgroundColor="Yellow">

    <SwipeView.LeftItems>
        <SwipeItems>
            <SwipeItem Text="Back"
                       BackgroundColor="Black"/>
        </SwipeItems>
    </SwipeView.LeftItems>
    <ScrollView>
        <Rectangle BackgroundColor="Blue"
                   WidthRequest="400"
                   HeightRequest="400"/>
    </ScrollView>
</SwipeView>
2. Execute and swipe left

Expected Behavior

SwipeItem "Back" should be displayed.

Actual Behavior

Nothing happens

Basic Information

  • Version with issue: 5.0.0.2244
  • Platform Target Frameworks:
    • UWP: Windows 10 build 19041

Environment

Show/Hide Visual Studio info
Microsoft Visual Studio Enterprise 2022
Version 17.0.0
VisualStudio.17.Release/17.0.0+31903.59
Microsoft .NET Framework
Version 4.8.04161

Installed Version: Enterprise

Visual C++ 2022   00476-80000-00000-AA889
Microsoft Visual C++ 2022

.NET Core Debugging with WSL   1.0
.NET Core Debugging with WSL

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASA Service Provider   1.0

ASP.NET and Web Tools 2019   17.0.789.48259
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   17.0.789.48259
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   17.0.789.48259
Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio   2.6.4000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   17.0.789.48259
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.6.4000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools   4.0.0-6.21526.21+c7d6f9fab845ffd943216da465022744e7d35f22
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus   1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

File Icons   2.7
Adds icons for files that are not recognized by Solution Explorer

Microsoft Azure Hive Query Language Service   2.6.4000.0
Language service for Hive query

Microsoft Azure Stream Analytics Language Service   2.6.4000.0
Language service for Azure Stream Analytics

Microsoft Azure Tools for Visual Studio   2.9
Support for Azure Cloud Services projects

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   2.1.134+45632ee938.RR
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers   1.2
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   17.0.11 (54f19d2)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   6.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Razor (ASP.NET Core)   17.0.0.2152201+3319c75f898522ff4dc9cf0c70035c284264a1de
Provides languages services for ASP.NET Core Razor.

Snapshot Debugging Extension   1.0
Snapshot Debugging Visual Studio Extension Detailed Info

SQL Server Data Tools   17.0.62110.20190
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   17.0.1001.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.0.0-6.21526.21+c7d6f9fab845ffd943216da465022744e7d35f22
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   17.0.0-beta.21522.2+6d626ff0752a77d339f609b4d361787dc9ca93a5
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions   1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Foo   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VsVim   2.10.99.99 Debug
VsVim is a Vim emulator for Visual Studio

WebPack Task Runner   1.5.104
Adds support for WebPack in Visual Studio 2015 and 2017's Task Runner Explorer.

Xamarin   17.0.0.336 (d17-0@29731f2)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.0.0.182 (remotes/origin/d17-0@ea204898d)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.0.17 (9e779b0)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   12.1.0.5 (d17-0/6b0e6b2)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: c633fe9
    Java.Interop: xamarin/java.interop/d17-0@febb1367
    ProGuard: Guardsquare/proguard/v7.0.1@912d149
    SQLite: xamarin/sqlite/3.36.0@a575761
    Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-0@a5194e9


Xamarin.iOS and Xamarin.Mac SDK   15.0.0.18 (577ff6329)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Reproduction Link

TestApp1.zip

@ggutschi ggutschi added s/unverified New report that has yet to be verified t/bug 🐛 labels Nov 16, 2021
@ggutschi ggutschi changed the title [Bug] UWP ScrollView inside SwipeView prevents swiping [Bug] [UWP] ScrollView inside SwipeView prevents swiping Nov 16, 2021
@jfversluis
Copy link
Member

To be honest I don't think it's the best practice to but a ScrollView in a SwipeView you might want to find some other way to do it :)

@ggutschi
Copy link
Author

ggutschi commented Nov 17, 2021

This is just a minimal example. I'm facing this problem with a dynamic page consisting of n ScrollViews and the whole Page should be able to be swiped back (go back to last page in history).

If that's not possible or wrong: What would be the alternative?

@jsuarezruiz jsuarezruiz added this to New in Triage via automation Nov 17, 2021
@jfversluis
Copy link
Member

Not sure if that makes it better tbh. Although you can, I still wouldn't suggest putting complete pages in a SwipeView. Alternatives are a bit hard to suggest as I don't know what you're trying to do exactly :) We'll see what we can do here, but I'll be honest: I don't think this will be top-priority.

@jsuarezruiz jsuarezruiz moved this from New to Needs Estimate in Triage Nov 26, 2021
@jsuarezruiz jsuarezruiz added this to Backlog in SwipeView via automation Nov 26, 2021
@jsuarezruiz jsuarezruiz removed the s/unverified New report that has yet to be verified label Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
SwipeView
  
Backlog
Triage
  
Needs Estimate
Development

No branches or pull requests

3 participants