lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.72k stars 756 forks source link

ScrollViewer.PanningMode="VerticalOnly" doesn't work as ScrollViewer from the NavigationView #1230

Closed Dian-Jiao closed 2 months ago

Dian-Jiao commented 2 months ago

Describe the bug

As #1041, there is a ScrollViewer from the NavigationView. I tried adding ScrollViewer.PanningMode="VerticalOnly" to a Page but it dosen't work as I use a touchscreen device to scroll it. ScrollViewer.CanContentScroll="False" can work but ScrollViewer.PanningMode="VerticalOnly" doesn't work.

Also, I try to add another ScrollViewer or ui:DynamicScrollViewer and enable PanningMode="VerticalOnly" but it also failed to work.

To Reproduce

  1. Add ScrollViewer.PanningMode="VerticalOnly" to a Page

  2. Scroll the screen via a touchscreen device

  3. Failed to scroll it

  4. Try to add another ScrollViewer or ui:DynamicScrollViewer

  5. enable PanningMode="VerticalOnly"

  6. Scroll the screen via a touchscreen device

  7. Failed to scroll it

Expected behavior

To scroll it successfully

Screenshots

No response

OS version

Windows 10 22H2, 19045.4894

.NET version

.Net 8

WPF-UI NuGet version

3.0.4

Additional context

No response

Dian-Jiao commented 2 months ago

Update it to 3.0.5 can fix it