Skip to content

Commit df40456

Browse files
committed
Address PR feeback
1 parent 1298137 commit df40456

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Core/DropShadowPanel/DropShadowPanel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ private void UpdateShadowMask()
167167
{
168168
CompositionBrush mask = null;
169169

170+
// We check for IAlphaMaskProvider first, to ensure that we use the custom
171+
// alpha mask even if Content happens to extend any of the other classes
170172
if (Content is IAlphaMaskProvider maskedControl)
171173
{
172174
mask = maskedControl.GetAlphaMask();

0 commit comments

Comments
 (0)