VB.Net Tutorial - WPF Listbox using Scrollintoview
Scrolling the WPF listbox is not that easy as we do in Windows forms applications. But the same time it is not impossible also. With the help of Scrollintoview we can achieve scrolling.
WPF controls are little different than normal web form controls and windows forms controls. The list box in windows can be scrolled by changing the selected index easily. But in wpf selection and scrolling are handled differently. So in order to scroll while selecting the control we need to write codes separately.
Another point to note is, though the following code snippet will work as is. It is not working in a specific scenario, if the item you would like to scroll to is loaded inside the list box but not visible on the screen, then the scroll won’t work. I am finding a solution. From the initial analysis, the following seems to be working
Private Dele ...