Skip to content

Commit

Permalink
Address PR feeback
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadiogarcia committed Jul 22, 2021
1 parent 1298137 commit df40456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ private void UpdateShadowMask()
{
CompositionBrush mask = null;

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

0 comments on commit df40456

Please sign in to comment.