-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent border color rendering with black Background and BorderBrush. #9107
Labels
Investigate
Requires further investigation by the WPF team.
Comments
Hi, miloush's solution is great. <Grid VerticalAlignment="Center" HorizontalAlignment="Center" SnapsToDevicePixels="True">
...
</Grid>
Have you checked the solution? If you still have issues please describe in more detail. |
@huiliuss It is not as much as solution as a workaround. Also as I showed above, SnapsToDevicePixels is not enough, which is potentially a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When setting both the Background and BorderBrush colors to black within a border element, an unexpected behavior occurs where an inner border in gray appears only on the top and bottom sides. This inconsistency in border color rendering contradicts the expected behavior and may lead to visual discrepancies in UI design.
Reproduction Steps
Issue Screenshot:
WPFDemo.zip
Expected behavior
The gray border color should not be displayed.
Actual behavior
The gray border color is displayed.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: