How to check whether the vertical scrollbar of the listbox is visible in code-behind?
I have a listbox with x:Name="listOfItems" and its underlying ScrollViewer's VerticalScrollbarVisibility is set to auto.
When the ItemsSource property of the ListBox is set, I want to check whether the verticalScrollbar is visible, but I don't know which property to check or how to dive into the scrollviewer element of the listbox.
Any suggestions