Skip to content

Commit 0446bdd

Browse files
committed
Move enums to files
1 parent 0fbe036 commit 0446bdd

File tree

3 files changed

+64
-52
lines changed

3 files changed

+64
-52
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace Microsoft.Toolkit.Uwp.UI.Controls
6+
{
7+
/// <summary>
8+
/// Image alignment
9+
/// </summary>
10+
public enum ImageAlignment
11+
{
12+
/// <summary>
13+
/// No alignment needed
14+
/// </summary>
15+
None,
16+
17+
/// <summary>
18+
/// Align to Left when the property ScrollOrientation is Horizontal
19+
/// </summary>
20+
Left,
21+
22+
/// <summary>
23+
/// Align to Right when the property ScrollOrientation is Horizontal
24+
/// </summary>
25+
Right,
26+
27+
/// <summary>
28+
/// Align to Top when the property ScrollOrientation is Vertical
29+
/// </summary>
30+
Top,
31+
32+
/// <summary>
33+
/// Align to Bottom when the property ScrollOrientation is Vertical
34+
/// </summary>
35+
Bottom
36+
}
37+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace Microsoft.Toolkit.Uwp.UI.Controls
6+
{
7+
/// <summary>
8+
/// Orientation of the scroll
9+
/// </summary>
10+
public enum ScrollOrientation
11+
{
12+
/// <summary>
13+
/// Scroll only Horizontally (and optimize the number of image used)
14+
/// </summary>
15+
Horizontal,
16+
17+
/// <summary>
18+
/// Scroll only Vertically (and optimize the number of image used)
19+
/// </summary>
20+
Vertical,
21+
22+
/// <summary>
23+
/// Scroll both Horizontally and vertically
24+
/// </summary>
25+
Both
26+
}
27+
}

Microsoft.Toolkit.Uwp.UI.Controls/TileControl/TileControl.cs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -19,58 +19,6 @@ namespace Microsoft.Toolkit.Uwp.UI.Controls
1919
using Windows.UI.Xaml.Hosting;
2020
using Windows.UI.Xaml.Media;
2121

22-
/// <summary>
23-
/// Orientation of the scroll
24-
/// </summary>
25-
public enum ScrollOrientation
26-
{
27-
/// <summary>
28-
/// Scroll only Horizontally (and optimize the number of image used)
29-
/// </summary>
30-
Horizontal,
31-
32-
/// <summary>
33-
/// Scroll only Vertically (and optimize the number of image used)
34-
/// </summary>
35-
Vertical,
36-
37-
/// <summary>
38-
/// Scroll both Horizontally and vertically
39-
/// </summary>
40-
Both
41-
}
42-
43-
/// <summary>
44-
/// Image alignment
45-
/// </summary>
46-
public enum ImageAlignment
47-
{
48-
/// <summary>
49-
/// No alignment needed
50-
/// </summary>
51-
None,
52-
53-
/// <summary>
54-
/// Align to Left when the property ScrollOrientation is Horizontal
55-
/// </summary>
56-
Left,
57-
58-
/// <summary>
59-
/// Align to Right when the property ScrollOrientation is Horizontal
60-
/// </summary>
61-
Right,
62-
63-
/// <summary>
64-
/// Align to Top when the property ScrollOrientation is Vertical
65-
/// </summary>
66-
Top,
67-
68-
/// <summary>
69-
/// Align to Bottom when the property ScrollOrientation is Vertical
70-
/// </summary>
71-
Bottom
72-
}
73-
7422
/// <summary>
7523
/// A ContentControl that show an image repeated many times.
7624
/// The control can be synchronized with a ScrollViewer and animated easily.

0 commit comments

Comments
 (0)