How can I remove the small rectangle that appears when a horizontal and vertical scrollbar appear?
+1
A:
I assume you are using a ScrollViewer. The default template of a ScrollViewer is a Grid containing two rows and two columns. The upper left cell contains the ScrollViewer content, upper right the vertical ScrollBar, lower left the horizontal ScrollBar, and a Rectangle on the lower right cell. Please check this article: http://www.eggheadcafe.com/tutorials/aspnet/f51ddf8c-5227-4f1b-a5df-ec3d1b3439ca/styling-the-wpf-scrollviewer.aspx. You can see the default template there. You could remove the rectangle and then set either the ColumnSpan of the horizontal ScrollBar or RowSpan of the vertical ScrollBar to cover the lower right cell. Hope this helps.
Michael Detras
2010-10-30 02:29:57
A:
just see this link
http://www.designerwpf.com/2008/08/07/styling-the-scrollviewer/
Kishore Kumar
2010-10-30 07:27:30