I'm working with WPF ScrollViewer.
<ScrollViewer Name="uiPageScrollViewer"
ScrollViewerHorizontalScrollBarVisibility="Auto">
...
</ScrollViewer>
I'm adding elements to ScrollViewer and HorizontalScrollBar
is showing in the UI.
When I try to get uiPageScrollViewer.HorizontalScrollBarVisibility
in code behind it returns Auto
.
How can I get Visibility
? When HorizontalScrollBar
is showing in UI than it should return Visible else does not matter.
Have you tried ScrollViewer.ComputedHorizontalScrollBarVisibility?