iNKORE-NET / UI.WPF.Modern

Modern (Fluent 2) styles and controls for your WPF applications
https://docs.inkore.net/ui-wpf-modern
GNU Lesser General Public License v2.1
412 stars 36 forks source link

ScrollViewerEx can not auto scroll #81

Open wuyang26 opened 1 month ago

wuyang26 commented 1 month 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 1 month 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 4 weeks 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 weeks ago

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

NotYoojun commented 2 weeks ago

Hey,

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

NotYoojun commented 2 weeks ago

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

Does this problem appear in the latest code?