-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Windows] Allow to remove shadows at runtime #31452
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
[Windows] Allow to remove shadows at runtime #31452
Conversation
|
Hey there @@MartyIX! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
| partial void ShadowChanged() | ||
| { | ||
| if (HasShadow) | ||
| if (Shadow?.Paint is { }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: You can compare the new snapshot in this PR with the Android one: https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.Android.Tests/snapshots/android/Issue24414Test_5.png. There should be no shadow visible in Issue24414Test_5.png snapshots.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
It looks like the tests passed. The failing tests are related to Android. |
7583191 to
326ee2b
Compare
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
This PR attempts to address https://github.com/dotnet/maui/pull/18337/files#r2314339635. That is, it makes sure that shadow is removed from Border when
Border.Shadow = nullis assigned.I took inspiration in Android implementation:
maui/src/Core/src/Platform/Android/WrapperView.cs
Lines 61 to 110 in 718adb7
Test effect
My
src\Controls\tests\TestCases.WinUI.Tests\snapshots\windows\Issue24414Test_5.pngchanges like this: