-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathVisualReferenceNode.cs
More file actions
165 lines (146 loc) · 4.29 KB
/
VisualReferenceNode.cs
File metadata and controls
165 lines (146 loc) · 4.29 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// 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 VisualReferenceNode. This class cannot be inherited.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public sealed partial class VisualReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="VisualReferenceNode" /> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="v">The v.</param>
internal VisualReferenceNode(string paramName, Visual? v = null)
: base(paramName, v)
{
}
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>VisualReferenceNode.</returns>
internal static VisualReferenceNode CreateTargetReference()
{
var node = new VisualReferenceNode(null!);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
/// <summary>
/// Gets the opacity.
/// </summary>
/// <value>The opacity.</value>
public ScalarNode Opacity
{
get { return ReferenceProperty<ScalarNode>("Opacity"); }
}
/// <summary>
/// Gets the rotation angle.
/// </summary>
/// <value>The rotation angle.</value>
public ScalarNode RotationAngle
{
get { return ReferenceProperty<ScalarNode>("RotationAngle"); }
}
/// <summary>
/// Gets the rotation angle in degrees.
/// </summary>
/// <value>The rotation angle in degrees.</value>
public ScalarNode RotationAngleInDegrees
{
get { return ReferenceProperty<ScalarNode>("RotationAngleInDegrees"); }
}
/// <summary>
/// Gets the anchor point.
/// </summary>
/// <value>The anchor point.</value>
public Vector2Node AnchorPoint
{
get { return ReferenceProperty<Vector2Node>("AnchorPoint"); }
}
/// <summary>
/// Gets the size of the relative.
/// </summary>
/// <value>The size of the relative.</value>
public Vector2Node RelativeSize
{
get { return ReferenceProperty<Vector2Node>("RelativeSize"); }
}
/// <summary>
/// Gets the size.
/// </summary>
/// <value>The size.</value>
public Vector2Node Size
{
get { return ReferenceProperty<Vector2Node>("Size"); }
}
/// <summary>
/// Gets the center point.
/// </summary>
/// <value>The center point.</value>
public Vector3Node CenterPoint
{
get { return ReferenceProperty<Vector3Node>("CenterPoint"); }
}
/// <summary>
/// Gets the offset.
/// </summary>
/// <value>The offset.</value>
public Vector3Node Offset
{
get { return ReferenceProperty<Vector3Node>("Offset"); }
}
/// <summary>
/// Gets the relative offset.
/// </summary>
/// <value>The relative offset.</value>
public Vector3Node RelativeOffset
{
get { return ReferenceProperty<Vector3Node>("RelativeOffset"); }
}
/// <summary>
/// Gets the rotation axis.
/// </summary>
/// <value>The rotation axis.</value>
public Vector3Node RotationAxis
{
get { return ReferenceProperty<Vector3Node>("RotationAxis"); }
}
/// <summary>
/// Gets the scale.
/// </summary>
/// <value>The scale.</value>
public Vector3Node Scale
{
get { return ReferenceProperty<Vector3Node>("Scale"); }
}
/// <summary>
/// Gets the Translation.
/// </summary>
public Vector3Node Translation
{
get { return GetVector3Property("Translation"); }
}
/// <summary>
/// Gets the orientation.
/// </summary>
/// <value>The orientation.</value>
public QuaternionNode Orientation
{
get { return ReferenceProperty<QuaternionNode>("Orientation"); }
}
/// <summary>
/// Gets the transform matrix.
/// </summary>
/// <value>The transform matrix.</value>
public Matrix4x4Node TransformMatrix
{
get { return ReferenceProperty<Matrix4x4Node>("TransformMatrix"); }
}
}