Search code examples
c#wpfxamlscrollbarscrollviewer

How to find Vertical Scrollbar width of a Scrollviewer in C#


I have a ScrollViewer and in that I am showing the Vertical Scrollbar, Now on changing resolution of the system I want to get the width of the scrollbar. I went through One StackOverflow Post there they mention to check for SystemParameters.ScrollWidth Property but again I din find any help from their. Can anybody please help me to fix my issue. Any answer will be appreciated.


Solution

  • I think SystemParameters.VerticalScrollBarWidth is what you are looking for.