質問

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?

役に立ちましたか?

解決

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"/>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top