Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ScrollViewer WPF bottom right corner color

I have a ScrollViewer in a ListView styled, but I cannot find the property to get rid of the bottom right corner as shown in the screenshot.

Example

Any ideas out of the property to set the background color?

like image 402
williamtroup Avatar asked Dec 10 '13 20:12

williamtroup


1 Answers

The first thing to do here is look at the default template for ScrollViewer, you can find that from the MSDN documentation for it. Copy and paste that code into your XAML and then place the cursor over each component and it will highlight in the designer. If you're still having trouble then give your ScrollViewer a name (e.g. "theScrollViewer"), put a button on the page somewhere, hook up a Clicked handler for the button, put a breakpoint there, run your app, press the button, add "theScrollViewer" to your watch window and then click on the little magnifying glass to bring up the visualizer...that will let you traverse the visual tree and see which part of the control each section is rendering.

That said, the answer your question is to change the line with the Rectangle:

<Rectangle Grid.Column="1" Grid.Row="1" Fill="#FFE9EEF4"/>
like image 125
Mark Feldman Avatar answered Sep 19 '22 14:09

Mark Feldman