Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying ScrollViewer.* as attached properties on a ListView won't affect its inner <ScrollViewer> #8313

Open
carldebilly opened this issue Mar 11, 2022 · 1 comment
Assignees
Labels
area/scrollviewer ⏬ Categorizes an issue or PR as relevant to ScrollViewer difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working low-hanging-🍒 Categorizes an issue that might be a quick win with meaningful positive impact. project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...) project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) triage/potentially-fixed Categorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified

Comments

@carldebilly
Copy link
Member

carldebilly commented Mar 11, 2022

Current behavior

Take the following XAML:

<ListView
    ScrollViewer.HorizontalScrollBarVisibility="Visible"
    ScrollViewer.HorizontalScrollMode="Enabled"
    ScrollViewer.IsHorizontalRailEnabled="True"
    ScrollViewer.VerticalScrollMode="Disabled"
    ScrollViewer.IsScrollInertiaEnabled="True"
    IsItemClickEnabled="True"
    Background="Pink"
    Margin="10"            
    Height="100"
    VerticalAlignment="Top">
    [...]

The inner ScrollViewer should inhering the properties defined on the <ListView> node.

This Link on the Uno Playground illustrate the problem.

Expected behavior

It works on Windows and also directly in XAML Studio.

How to reproduce it (as minimally and precisely as possible)

Playground: https://playground.platform.uno/#94f2bc73

Workaround

Redefine the Control Template for the <ListView>

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

All - tested on Uno.UI v4.1

Affected platforms

iOS, Android, WebAssembly, macOS, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Tizen)

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

From Stack Overflow: https://stackoverflow.com/questions/70838006/uno-platform-horizontal-scroolling-control

@carldebilly carldebilly added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Mar 11, 2022
@jeromelaban jeromelaban added area/scrollviewer ⏬ Categorizes an issue or PR as relevant to ScrollViewer project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) and removed project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools triage/untriaged Indicates an issue requires triaging or verification labels Mar 11, 2022
@mezdelex
Copy link

Any further update on the issue? I'm experiencing the exact same problem using Uno for Android/iOS with UWP. While the horizontal StackPanel orientation is correct, I cannot scroll horizontally through items.

Also @carldebilly by "Workaround
Redefine the Control Template for the " what do you mean? Sorry to bother you; I'm learning UWP while developing an application and I would thank you so much if you could provide any link or documentation where I could learn how to redefine such controls. Thanks in advance.

@MartinZikmund MartinZikmund changed the title Specifying ScrollViewer.* as attached properties on a ListView won't affect its inner <ScrollViewer> Specifying ScrollViewer.* as attached properties on a ListView won't affect its inner <ScrollViewer> Jul 24, 2023
@MartinZikmund MartinZikmund added difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI low-hanging-🍒 Categorizes an issue that might be a quick win with meaningful positive impact. project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...) and removed difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jul 24, 2023
@ramezgerges ramezgerges added the triage/potentially-fixed Categorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified label Aug 11, 2023
@Youssef1313 Youssef1313 self-assigned this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/scrollviewer ⏬ Categorizes an issue or PR as relevant to ScrollViewer difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working low-hanging-🍒 Categorizes an issue that might be a quick win with meaningful positive impact. project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...) project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) triage/potentially-fixed Categorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified
Projects
None yet
Development

No branches or pull requests

6 participants