we know that Listbox default has the virtualization feature, so the ScrollViewer.CanContentScroll default is true, but there are also some side effects for this feature
we will find that the scroll bar doesn't disappear or scroll accordingly when we change the count of the Source of the Listview, like we use Filter in View.
For this case that we need to scroll to the item manually.
we will find that the scroll bar doesn't disappear or scroll accordingly when we change the count of the Source of the Listview, like we use Filter in View.
For this case that we need to scroll to the item manually.
Ref:
http://stackoverflow.com/questions/3062540/wpf-datagrid-cancontentscroll-property-causing-odd-behavior

浙公网安备 33010602011771号