Scroll style

How to remove a small rectangle that appears when a horizontal and vertical scrollbar appears?

alt text

+3
source share
1 answer

I assume you are using ScrollViewer. The default ScrollViewer template is a grid containing two rows and two columns. The upper left cell contains the ScrollViewer content, the upper right vertical ScrollBar, the lower left horizontal ScrollBar, and the rectangle in the lower right cell. Check out this article: http://www.eggheadcafe.com/tutorials/aspnet/f51ddf8c-5227-4f1b-a5df-ec3d1b3439ca/styling-the-wpf-scrollviewer.aspx . You can see the default template. You can remove the rectangle and then set the ColumnSpan of the horizontal ScrollBar or RowSpan of the vertical ScrollBar to cover the lower right cell. Hope this helps.

+1
source

Source: https://habr.com/ru/post/1772210/


All Articles