The Background color painted on the Button occurs on scrolling slowly using horizontal scrollbar
See original GitHub issueThe Background color painted on the Button occurs on scrolling slowly using a horizontal scrollbar
- Make sure the horizontal scrollbar is positioned to the far left
- Move the horizontal scroll bar very slowly
- Observe the Background color painted on the Button.
Expected result: Background color should not paint on the Button.
Output screen shot:
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:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top GitHub Comments
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.
Closing in absence of a reply.