I can’t find a ListBox methods for scrolling. I’ve found that ListBox itself implements ScrollView but I couldn’t find LineUp() nor LineDown() method. Does ListBox have methods for scrolling ?
I need to attach this methods to buttons.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Scrolling in WPF (for all controls that implement it) is done with the ScrollViewer. See the accepted answer in WPF ListBox control horizontal scrolling in code for how to find the ScrollViewer of your ListBox. Then you can use ScrollViewer’s LineUp()/LineDown() methods or a whole host of methods on it.