-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathDropShadowReferenceNode.cs
More file actions
76 lines (67 loc) · 2.09 KB
/
DropShadowReferenceNode.cs
File metadata and controls
76 lines (67 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// 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.
#if WINAPPSDK
using Microsoft.UI.Composition;
#else
using Windows.UI.Composition;
#endif
namespace CommunityToolkit.WinUI.Animations.Expressions;
/// <summary>
/// Class DropShadowReferenceNode. This class cannot be inherited.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public sealed partial class DropShadowReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="DropShadowReferenceNode"/> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="source">The source.</param>
internal DropShadowReferenceNode(string paramName, DropShadow? source = null)
: base(paramName, source)
{
}
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>DropShadowReferenceNode.</returns>
internal static DropShadowReferenceNode CreateTargetReference()
{
var node = new DropShadowReferenceNode(null!);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
/// <summary>
/// Gets the blur radius.
/// </summary>
/// <value>The blur radius.</value>
public ScalarNode BlurRadius
{
get { return ReferenceProperty<ScalarNode>("BlurRadius"); }
}
/// <summary>
/// Gets the opacity.
/// </summary>
/// <value>The opacity.</value>
public ScalarNode Opacity
{
get { return ReferenceProperty<ScalarNode>("Opacity"); }
}
/// <summary>
/// Gets the offset.
/// </summary>
/// <value>The offset.</value>
public Vector3Node Offset
{
get { return ReferenceProperty<Vector3Node>("Offset"); }
}
/// <summary>
/// Gets the color.
/// </summary>
/// <value>The color.</value>
public ColorNode Color
{
get { return ReferenceProperty<ColorNode>("Color"); }
}
}