Skip to content

Commit 16cce2d

Browse files
committed
Move platfiorm conditionals to using statements
1 parent 71333b1 commit 16cce2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

components/Animations/src/Enums/FrameworkLayer.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#if WINUI2
6+
using Composition = Windows.UI.Composition;
7+
using Animation = Windows.UI.Xaml.Media.Animation;
8+
#elif WINUI3
9+
using Composition = Microsoft.UI.Composition;
10+
using Animation = Microsoft.UI.Xaml.Media.Animation;
11+
#endif
12+
513
namespace CommunityToolkit.WinUI.Animations;
614

715
/// <summary>
@@ -10,20 +18,12 @@ namespace CommunityToolkit.WinUI.Animations;
1018
public enum FrameworkLayer
1119
{
1220
/// <summary>
13-
#if WINUI2
14-
/// Indicates the <see cref="Windows.UI.Composition"/> APIs.
15-
#elif WINUI3
16-
/// Indicates the <see cref="Microsoft.UI.Composition"/> APIs.
17-
#endif
21+
/// Indicates the <see cref="Composition"/> APIs.
1822
/// </summary>
1923
Composition,
2024

2125
/// <summary>
22-
#if WINUI2
23-
/// Indicates the <see cref="Windows.UI.Xaml.Media.Animation"/> APIs.
24-
#elif WINUI3
25-
/// Indicates the <see cref="Microsoft.UI.Xaml.Media.Animation"/> APIs.
26-
#endif
26+
/// Indicates the <see cref="Animation"/> APIs.
2727
/// </summary>
2828
Xaml
2929
}

0 commit comments

Comments
 (0)