Skip to content

Commit fded2ed

Browse files
Add InnerContentClipMode
1 parent 5704ce1 commit fded2ed

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Microsoft.Toolkit.Uwp.UI.Media
8+
{
9+
/// <summary>
10+
/// The method that shadows deriving from <see cref="AttachedCardShadowBase"/> use when clipping their inner content.
11+
/// </summary>
12+
public enum InnerContentClipMode
13+
{
14+
/// <summary>
15+
/// Use <see cref="Windows.UI.Composition.CompositionMaskBrush"/> to clip inner content.
16+
/// </summary>
17+
/// <remarks>
18+
/// This mode has better performance than <see cref="CompositionGeometricClip"/>.
19+
/// </remarks>
20+
CompositionMaskBrush,
21+
22+
/// <summary>
23+
/// Use <see cref="Windows.UI.Composition.CompositionGeometricClip"/> to clip inner content.
24+
/// </summary>
25+
/// <remarks>
26+
/// Content clipped in this mode will have smoother corners than when using <see cref="CompositionMaskBrush"/>.
27+
/// </remarks>
28+
CompositionGeometricClip
29+
}
30+
}

0 commit comments

Comments
 (0)