|
4 | 4 | namespace Files.App.Controls
|
5 | 5 | {
|
6 | 6 | /// <summary>
|
7 |
| - /// Represents the control that redistributes space between columns or rows of a Grid control. |
| 7 | + /// Enum to indicate whether GridSplitter resizes Columns or Rows |
8 | 8 | /// </summary>
|
9 |
| - public partial class GridSplitter |
| 9 | + public enum GridResizeDirection |
10 | 10 | {
|
11 | 11 | /// <summary>
|
12 |
| - /// Enum to indicate whether GridSplitter resizes Columns or Rows |
13 |
| - /// </summary> |
14 |
| - public enum GridResizeDirection |
15 |
| - { |
16 |
| - /// <summary> |
17 |
| - /// Determines whether to resize rows or columns based on its Alignment and |
18 |
| - /// width compared to height |
19 |
| - /// </summary> |
20 |
| - Auto, |
21 |
| - |
22 |
| - /// <summary> |
23 |
| - /// Resize columns when dragging Splitter. |
24 |
| - /// </summary> |
25 |
| - Columns, |
26 |
| - |
27 |
| - /// <summary> |
28 |
| - /// Resize rows when dragging Splitter. |
29 |
| - /// </summary> |
30 |
| - Rows |
31 |
| - } |
32 |
| - |
33 |
| - /// <summary> |
34 |
| - /// Enum to indicate what Columns or Rows the GridSplitter resizes |
35 |
| - /// </summary> |
36 |
| - public enum GridResizeBehavior |
37 |
| - { |
38 |
| - /// <summary> |
39 |
| - /// Determine which columns or rows to resize based on its Alignment. |
40 |
| - /// </summary> |
41 |
| - BasedOnAlignment, |
42 |
| - |
43 |
| - /// <summary> |
44 |
| - /// Resize the current and next Columns or Rows. |
45 |
| - /// </summary> |
46 |
| - CurrentAndNext, |
47 |
| - |
48 |
| - /// <summary> |
49 |
| - /// Resize the previous and current Columns or Rows. |
50 |
| - /// </summary> |
51 |
| - PreviousAndCurrent, |
52 |
| - |
53 |
| - /// <summary> |
54 |
| - /// Resize the previous and next Columns or Rows. |
55 |
| - /// </summary> |
56 |
| - PreviousAndNext |
57 |
| - } |
58 |
| - |
59 |
| - /// <summary> |
60 |
| - /// Enum to indicate the supported gripper cursor types. |
61 |
| - /// </summary> |
62 |
| - public enum GripperCursorType |
63 |
| - { |
64 |
| - /// <summary> |
65 |
| - /// Change the cursor based on the splitter direction |
66 |
| - /// </summary> |
67 |
| - Default = -1, |
68 |
| - |
69 |
| - /// <summary> |
70 |
| - /// Standard Arrow cursor |
71 |
| - /// </summary> |
72 |
| - Arrow, |
73 |
| - |
74 |
| - /// <summary> |
75 |
| - /// Standard Cross cursor |
76 |
| - /// </summary> |
77 |
| - Cross, |
78 |
| - |
79 |
| - /// <summary> |
80 |
| - /// Standard Custom cursor |
81 |
| - /// </summary> |
82 |
| - Custom, |
83 |
| - |
84 |
| - /// <summary> |
85 |
| - /// Standard Hand cursor |
86 |
| - /// </summary> |
87 |
| - Hand, |
88 |
| - |
89 |
| - /// <summary> |
90 |
| - /// Standard Help cursor |
91 |
| - /// </summary> |
92 |
| - Help, |
93 |
| - |
94 |
| - /// <summary> |
95 |
| - /// Standard IBeam cursor |
96 |
| - /// </summary> |
97 |
| - IBeam, |
98 |
| - |
99 |
| - /// <summary> |
100 |
| - /// Standard SizeAll cursor |
101 |
| - /// </summary> |
102 |
| - SizeAll, |
103 |
| - |
104 |
| - /// <summary> |
105 |
| - /// Standard SizeNortheastSouthwest cursor |
106 |
| - /// </summary> |
107 |
| - SizeNortheastSouthwest, |
108 |
| - |
109 |
| - /// <summary> |
110 |
| - /// Standard SizeNorthSouth cursor |
111 |
| - /// </summary> |
112 |
| - SizeNorthSouth, |
113 |
| - |
114 |
| - /// <summary> |
115 |
| - /// Standard SizeNorthwestSoutheast cursor |
116 |
| - /// </summary> |
117 |
| - SizeNorthwestSoutheast, |
118 |
| - |
119 |
| - /// <summary> |
120 |
| - /// Standard SizeWestEast cursor |
121 |
| - /// </summary> |
122 |
| - SizeWestEast, |
123 |
| - |
124 |
| - /// <summary> |
125 |
| - /// Standard UniversalNo cursor |
126 |
| - /// </summary> |
127 |
| - UniversalNo, |
128 |
| - |
129 |
| - /// <summary> |
130 |
| - /// Standard UpArrow cursor |
131 |
| - /// </summary> |
132 |
| - UpArrow, |
133 |
| - |
134 |
| - /// <summary> |
135 |
| - /// Standard Wait cursor |
136 |
| - /// </summary> |
137 |
| - Wait |
138 |
| - } |
139 |
| - |
140 |
| - /// <summary> |
141 |
| - /// Enum to indicate the behavior of window cursor on grid splitter hover |
142 |
| - /// </summary> |
143 |
| - public enum SplitterCursorBehavior |
144 |
| - { |
145 |
| - /// <summary> |
146 |
| - /// Update window cursor on Grid Splitter hover |
147 |
| - /// </summary> |
148 |
| - ChangeOnSplitterHover, |
149 |
| - |
150 |
| - /// <summary> |
151 |
| - /// Update window cursor on Grid Splitter Gripper hover |
152 |
| - /// </summary> |
153 |
| - ChangeOnGripperHover |
154 |
| - } |
| 12 | + /// Determines whether to resize rows or columns based on its Alignment and |
| 13 | + /// width compared to height |
| 14 | + /// </summary> |
| 15 | + Auto, |
| 16 | + |
| 17 | + /// <summary> |
| 18 | + /// Resize columns when dragging Splitter. |
| 19 | + /// </summary> |
| 20 | + Columns, |
| 21 | + |
| 22 | + /// <summary> |
| 23 | + /// Resize rows when dragging Splitter. |
| 24 | + /// </summary> |
| 25 | + Rows |
| 26 | + } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// Enum to indicate what Columns or Rows the GridSplitter resizes |
| 30 | + /// </summary> |
| 31 | + public enum GridResizeBehavior |
| 32 | + { |
| 33 | + /// <summary> |
| 34 | + /// Determine which columns or rows to resize based on its Alignment. |
| 35 | + /// </summary> |
| 36 | + BasedOnAlignment, |
| 37 | + |
| 38 | + /// <summary> |
| 39 | + /// Resize the current and next Columns or Rows. |
| 40 | + /// </summary> |
| 41 | + CurrentAndNext, |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// Resize the previous and current Columns or Rows. |
| 45 | + /// </summary> |
| 46 | + PreviousAndCurrent, |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// Resize the previous and next Columns or Rows. |
| 50 | + /// </summary> |
| 51 | + PreviousAndNext |
| 52 | + } |
| 53 | + |
| 54 | + /// <summary> |
| 55 | + /// Enum to indicate the supported gripper cursor types. |
| 56 | + /// </summary> |
| 57 | + public enum GripperCursorType |
| 58 | + { |
| 59 | + /// <summary> |
| 60 | + /// Change the cursor based on the splitter direction |
| 61 | + /// </summary> |
| 62 | + Default = -1, |
| 63 | + |
| 64 | + /// <summary> |
| 65 | + /// Standard Arrow cursor |
| 66 | + /// </summary> |
| 67 | + Arrow, |
| 68 | + |
| 69 | + /// <summary> |
| 70 | + /// Standard Cross cursor |
| 71 | + /// </summary> |
| 72 | + Cross, |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// Standard Custom cursor |
| 76 | + /// </summary> |
| 77 | + Custom, |
| 78 | + |
| 79 | + /// <summary> |
| 80 | + /// Standard Hand cursor |
| 81 | + /// </summary> |
| 82 | + Hand, |
| 83 | + |
| 84 | + /// <summary> |
| 85 | + /// Standard Help cursor |
| 86 | + /// </summary> |
| 87 | + Help, |
| 88 | + |
| 89 | + /// <summary> |
| 90 | + /// Standard IBeam cursor |
| 91 | + /// </summary> |
| 92 | + IBeam, |
| 93 | + |
| 94 | + /// <summary> |
| 95 | + /// Standard SizeAll cursor |
| 96 | + /// </summary> |
| 97 | + SizeAll, |
| 98 | + |
| 99 | + /// <summary> |
| 100 | + /// Standard SizeNortheastSouthwest cursor |
| 101 | + /// </summary> |
| 102 | + SizeNortheastSouthwest, |
| 103 | + |
| 104 | + /// <summary> |
| 105 | + /// Standard SizeNorthSouth cursor |
| 106 | + /// </summary> |
| 107 | + SizeNorthSouth, |
| 108 | + |
| 109 | + /// <summary> |
| 110 | + /// Standard SizeNorthwestSoutheast cursor |
| 111 | + /// </summary> |
| 112 | + SizeNorthwestSoutheast, |
| 113 | + |
| 114 | + /// <summary> |
| 115 | + /// Standard SizeWestEast cursor |
| 116 | + /// </summary> |
| 117 | + SizeWestEast, |
| 118 | + |
| 119 | + /// <summary> |
| 120 | + /// Standard UniversalNo cursor |
| 121 | + /// </summary> |
| 122 | + UniversalNo, |
| 123 | + |
| 124 | + /// <summary> |
| 125 | + /// Standard UpArrow cursor |
| 126 | + /// </summary> |
| 127 | + UpArrow, |
| 128 | + |
| 129 | + /// <summary> |
| 130 | + /// Standard Wait cursor |
| 131 | + /// </summary> |
| 132 | + Wait |
| 133 | + } |
| 134 | + |
| 135 | + /// <summary> |
| 136 | + /// Enum to indicate the behavior of window cursor on grid splitter hover |
| 137 | + /// </summary> |
| 138 | + public enum SplitterCursorBehavior |
| 139 | + { |
| 140 | + /// <summary> |
| 141 | + /// Update window cursor on Grid Splitter hover |
| 142 | + /// </summary> |
| 143 | + ChangeOnSplitterHover, |
| 144 | + |
| 145 | + /// <summary> |
| 146 | + /// Update window cursor on Grid Splitter Gripper hover |
| 147 | + /// </summary> |
| 148 | + ChangeOnGripperHover |
155 | 149 | }
|
156 | 150 | }
|
0 commit comments