-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathPropertySetReferenceNode.cs
More file actions
57 lines (50 loc) · 1.93 KB
/
PropertySetReferenceNode.cs
File metadata and controls
57 lines (50 loc) · 1.93 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
// 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 PropertySetReferenceNode.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public partial class PropertySetReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="PropertySetReferenceNode"/> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="ps">The ps.</param>
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
internal PropertySetReferenceNode(string paramName, CompositionPropertySet? ps = null)
: base(paramName!, ps)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="PropertySetReferenceNode"/> class.
/// </summary>
// Needed for GetSpecializedReference<>()
internal PropertySetReferenceNode()
: base(null!, null)
{
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
/// <summary>
/// Gets or sets the source.
/// </summary>
/// <value>The source.</value>
internal CompositionPropertySet Source { get; set; }
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>PropertySetReferenceNode.</returns>
internal static PropertySetReferenceNode CreateTargetReference()
{
var node = new PropertySetReferenceNode(null!);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
}