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

user701677 picture user701677 · Apr 18, 2011 · Viewed 17.6k times · Source

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.

Answer

Fredrik Mörk picture Fredrik Mörk · Apr 18, 2011

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