0

Basically I need to know the ScrollViewer ScrollBar width.

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

doesn't work

SystemParameters.VerticalScrollBarWidth

Any clue?

Community
  • 1
  • 1
NoWar
  • 36,338
  • 80
  • 323
  • 498

1 Answers1

0

I found solution here Changing the width of a vertical scrollbar

ScrollBar vertical = ((FrameworkElement)VisualTreeHelper.GetChild(scrollviewer1, 0)).FindName("VerticalScrollBar") as ScrollBar;

var w = vertical.Width;
Community
  • 1
  • 1
NoWar
  • 36,338
  • 80
  • 323
  • 498