WPF ListBox controls horizontal scrolling of code
2 answers
With a few more searches around the site, I figured out the answer to my question.
Using the following function from Josh G answer this question
public static childItem FindVisualChild<childItem>(DependencyObject obj)
{
...
}
With this function per page left and right via code, all you have to do is the following (where listBox is the name of my ListBox control),
void PageRight()
{
ScrollViewer myScrollviewer = FindVisualChild<ScrollViewer>(listBox);
myScrollviewer.PageRight();
}
+2
source to share