iNKORE-NET / UI.WPF.Modern

Modern (Fluent 2) styles and controls for your WPF applications
GNU Lesser General Public License v2.1
581 stars 52 forks source link

ScrollViewerEx can not auto scroll #81

Open wuyang26 opened 3 months ago

wuyang26 commented 3 months ago

When using ScrollViewerEx on a Listbox, if an item is partially obscured, clicking on it with the mouse will automatically scroll to full display if using ScrollViewer, while ScrollViewerEx will have no response. image

wuyang26 commented 3 months ago

At the same time If ScrollViewerEx is used with the ComboBox control, it will not automatically scroll to the selection when clicking the drop-down button.

Bober95 commented 3 months ago

https://github.com/iNKORE-NET/UI.WPF.Modern/blob/8620356967c85ddaa8da42422e0c940e43e03bce/source/iNKORE.UI.WPF.Modern/Controls/ScrollViewerEx.cs#L108

If you remove the ScrollInfo override everything starts working normally

wuyang26 commented 3 months ago

After deleting this code, an error occurred while running for ListBox Control.

NotYoojun commented 2 months ago

Hey,

Pls check after the latest commit if the problem still exists.

NotYoojun commented 2 months ago

After deleting this code, an error occurred while running for ListBox Control.

Does this problem appear in the latest code?