-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4107 from arcadiogarcia/user/arcadiog/dropShadowMask
Add custom alpha mask support to DropShadowPanel
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using Windows.UI.Composition; | ||
|
||
namespace Microsoft.Toolkit.Uwp.UI | ||
{ | ||
/// <summary> | ||
/// Any user control can implement this interface to provide a custom alpha mask to it's parent DropShadowPanel | ||
/// </summary> | ||
public interface IAlphaMaskProvider | ||
{ | ||
/// <summary> | ||
/// This method should return the appropiate alpha mask to be used in the shadow of this control | ||
/// </summary> | ||
/// <returns>The alpha mask as a composition brush</returns> | ||
CompositionBrush GetAlphaMask(); | ||
} | ||
} |