question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Background color painted on the Button occurs on scrolling slowly using horizontal scrollbar

See original GitHub issue

The Background color painted on the Button occurs on scrolling slowly using a horizontal scrollbar

  1. Make sure the horizontal scrollbar is positioned to the far left
  2. Move the horizontal scroll bar very slowly
  3. Observe the Background color painted on the Button.

Expected result: Background color should not paint on the Button.

Output screen shot: sshot-39

Code snippet: <Window x:Class="Button.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Button" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Title="MainWindow" Width="170" Height="200" mc:Ignorable="d"> <ScrollViewer HorizontalScrollBarVisibility="Visible"> <Grid Width="250" Background="Red"> <Button Width="250" Height="30" Margin="20,5,5,5" Background="White" BorderBrush="White" Content="GroupBarItem 1" SnapsToDevicePixels="True" /> </Grid> </ScrollViewer> </Window>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JagadeesanPichaimuthucommented, Jul 6, 2021

I have checked this bug by following these guidelines - https://github.com/microsoft/WPF-Samples/blob/master/PerMonitorDPI/readme.md and still the bug reproduced. And this bug reproduced in VS 2022 Preview also. MicrosoftTeams-image (127)

0reactions
singhashish-wpfcommented, Mar 28, 2023

Closing in absence of a reply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Background color painted on the Button occurs ...
Make sure the horizontal scrollbar is positioned to the far left ; Move the horizontal scroll bar very slowly; Observe the Background color ......
Read more >
How can I make my background-color fill all my content ...
And if I scroll horizontally, it's even worse: the background color scrolls left off the page. The background-color is only one browser-width ...
Read more >
Fix scrolling performance with CSS will-change property
As Paul explains in his short video, using background-attachment: fixed causes a paint operation every time the user scrolls. Why?
Read more >
How to create parallax scrolling with CSS
Parallax scrolling is a computer graphics technique in which background images move past the camera more slowly than the foreground images, ...
Read more >
scrollbar-color - CSS: Cascading Style Sheets - MDN Web Docs
The scrollbar-color CSS property sets the color of the scrollbar track and thumb. The track refers to the background of the scrollbar, which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found