You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Poopooracoocoo yes. Maybe I just don't know what you mean by smooth scrolling and how it differs from the current scrolling behaviour. Can you elaborate?
By smooth scrolling, I mean pixel by pixel, as opposed to line by line. This is the difference between a mouse wheel that has notches and a touchscreen, pen or touchpad. You can see this difference in apps like Chrome, Firefox, the Start Menu and Settings.
Visual Studio, Expression Design, Message Analyzer, PowerShell ISE, WinDbg, ILSpy, are you looking for anything specific?
The text box seems to be scrolling pixel by pixel by default. List box, combo box and similar items controls can scroll smoothly if you set ScrollViewer.CanContentScroll="False" on them... is that what you are looking for?
The inertia is on by default and can be controlled by ScrollViewer.PanningDeceleration. It looks pretty smooth to me, that's why I was asking for repro steps.
Ever used any UWP apps? OP wants a scrolling experience similar to what UWP offers.
Animated, inertial & smooth scrolling to be precise.
CanContentScroll only toggles between line/content (i.e. one control at a time) scroll. There is no support for pixel by pixel scrolling in WPF natively. We have to use some ugly workarounds just for this.
I tried both UWP and WPF with ListBox and about hundred of items using touchpad. They are both smooth, pixel-by-pixel and have inertia. The only difference I can see is 1) speed: UWP scrolls faster on inertia but slower when fingers are still touching compared to WPF 2) UWP bounces when you reach the end of scrolling.
You can also use VirtualizingPanel.ScrollUnit="Pixel" instead of CanContentScroll and the scrolling speed can be controlled in Settings.
@ShankarBUS, thank you for the report. Can you reactivate this issue with a repro project and more specific details on what is wrong with the scrolling behavior? Thanks.
Activity
miloush commentedon Sep 24, 2020
Can you provide repro steps of what does not smooth scroll for you?
Poopooracoocoo commentedon Sep 25, 2020
@miloush Do you know of any WPF apps off the top of your head?
miloush commentedon Sep 26, 2020
@Poopooracoocoo yes. Maybe I just don't know what you mean by smooth scrolling and how it differs from the current scrolling behaviour. Can you elaborate?
Poopooracoocoo commentedon Sep 27, 2020
Could you please name some?
By smooth scrolling, I mean pixel by pixel, as opposed to line by line. This is the difference between a mouse wheel that has notches and a touchscreen, pen or touchpad. You can see this difference in apps like Chrome, Firefox, the Start Menu and Settings.
miloush commentedon Sep 27, 2020
Visual Studio, Expression Design, Message Analyzer, PowerShell ISE, WinDbg, ILSpy, are you looking for anything specific?
The text box seems to be scrolling pixel by pixel by default. List box, combo box and similar items controls can scroll smoothly if you set
ScrollViewer.CanContentScroll="False"on them... is that what you are looking for?ShankarBUS commentedon Sep 27, 2020
I guess @Poopooracoocoo is referring to smooth inertial scrolling similar to what MS Edge and UWP/WinUI provides.
Even if we set the
CanContentScrollto false, it still won't be smooth (may be not stuttering but still not smooth).miloush commentedon Sep 27, 2020
The inertia is on by default and can be controlled by
ScrollViewer.PanningDeceleration. It looks pretty smooth to me, that's why I was asking for repro steps.ShankarBUS commentedon Sep 27, 2020
Ever used any UWP apps? OP wants a scrolling experience similar to what UWP offers.
Animated, inertial & smooth scrolling to be precise.
CanContentScroll only toggles between line/content (i.e. one control at a time) scroll. There is no support for pixel by pixel scrolling in WPF natively. We have to use some ugly workarounds just for this.
miloush commentedon Sep 27, 2020
I tried both UWP and WPF with ListBox and about hundred of items using touchpad. They are both smooth, pixel-by-pixel and have inertia. The only difference I can see is 1) speed: UWP scrolls faster on inertia but slower when fingers are still touching compared to WPF 2) UWP bounces when you reach the end of scrolling.
You can also use
VirtualizingPanel.ScrollUnit="Pixel"instead ofCanContentScrolland the scrolling speed can be controlled in Settings.ryalanms commentedon Oct 15, 2020
@ShankarBUS, thank you for the report. Can you reactivate this issue with a repro project and more specific details on what is wrong with the scrolling behavior? Thanks.