I create a scrollbar in codebehind as follows:
ScrollBar b = new ScrollBar();
Grid ScrollbarGrid = GetTemplateChild( "ScrollbarGrid" ) as Grid;
b.Orientation = Orientation.Horizontal;
ScrollbarGrid.Children.Add(b);
What do I need so that the scrollbar descriptor has the size that I set myself, if at all possible?
source
share