-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Light bars in the Card at the corners when using UniformCornerRadius #3687
Comments
@MEDUZAprogrammer is the XAML you provided above reproducing the bug you are describing? I'm asking because I'm unable to reproduce your problem. Is it possible you provide more details or possibly a repo that showcases this bug? |
|
I still can't reproduce this bug. Neither on the 5.1.0 release nor the pre-release. <Grid>
<materialDesign:Card Margin="25" UniformCornerRadius="30" Padding="0" BorderThickness="0" >
<Grid Background="Black" Margin="0"/>
</materialDesign:Card>
</Grid> There is also another issue (#3651) with the @MEDUZAprogrammer to make sure we don't misunderstand each other, I uploaded a repo of the example app I created: Could you download the repo, launch the app and verify that you are still seeing the initial bug you reported? |
@corvinsz I am able to reproduce some of what @MEDUZAprogrammer is hinting at with your sample repo. If I set the outer-most It should be noted that I am (at the moment) on 4K monitors applying 150% DPI scaling which also has the potential to play a role in something like this (layout rounding etc.). I will try it at my other desk tomorrow where I am not running DPI scaling. |
I'm now able to reproduce it thanks to @nicolaihenriksen Edit: |
In your example, when the background color changes, stripes appear:
Also, if your code is left unchanged, then when switching from _____My
Checked on my project, changed How do I get rid of this in my project? |
@corvinsz @MEDUZAprogrammer I can add that I have tested the sample provided by @corvinsz on my setup without DPI scaling (i.e. same code as the other day). The issue is still present, but much less visible, so I think DPI scaling and layout rounding definitely plays a part here. |
@nicolaihenriksen @MEDUZAprogrammer this is very weird. With the sample I provided I can't reproduce this bug without DPI scaling: Even with the Windows 11 screen magnifier zoomed in at 600% there is no white border/corner showing for me. |
Changing the scale does not affect the bars in any way - all of them are visible! @nicolaihenriksen I use monitors 3440x1440 and 1920x1080 (scale is 100% everywhere), on users ' computers, mostly 1920x1080 and more (I won't say about the scale) on different monitors you can see stripes - they are the same. @corvinsz I think the white or black color of the stripes in the corners is poorly visible on a red background, my application has a light theme and most users have a dark desktop background, which immediately catches the eye. If the theme is black, then you can do UPD: It is mainly used by Windows 10 and Windows 7. I have Windows 10. |
Bug explanation
I have a window style called WindowStyle, after upgrading from 4.9.0 by 5.1.0 light bars appeared in the corners with the parameter UniformCornerRadius= "10", which is very annoying for users of my application, since at 4.9.0 there was no such problem, these stripes are not visible on a white background. Removed \ < ContentPresenter Content="{TemplateBinding Content}"/>, the problem remained.
Changed the layout in the tree, removed most of the properties in the style and elements, BorderThickness = 0, BorderBrush = Transparent, didn't help.
How do I get rid of these light bars?
Version
5.1.0
The text was updated successfully, but these errors were encountered: