-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathSamplesConfiguration.cs
302 lines (271 loc) · 12.6 KB
/
SamplesConfiguration.cs
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
#region Copyright Syncfusion® Inc. 2001-2025.
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
namespace Syncfusion.RadialGaugeDemos.WinUI
{
using Syncfusion.DemosCommon.WinUI;
using System.Collections.Generic;
class SamplesConfiguration
{
public SamplesConfiguration()
{
DemoInfo gettingStartedSample = new DemoInfo()
{
Name = "Getting started",
Description = "This sample explains the steps required for the addition of radial gauge and its elements such as axis, range, pointer and annotation.",
Category = "Getting started",
DemoType = DemoTypes.None,
DemoView = typeof(Views.GettingStarted)
};
DemoInfo sleepTrackerShowCaseSample = new DemoInfo()
{
Name = "Sleep tracker",
Description = "This sample showcases how to design the sleep tracker view using the free rotation of content pointer and ranges features of radial gauge.",
Category = "Product Showcase",
DemoType = DemoTypes.Showcase | DemoTypes.None,
DemoView = typeof(Views.SleepTracker)
};
DemoInfo carDashboardShowCaseSample = new DemoInfo()
{
Name = "Car dashboard",
Description = "This sample showcases how to design the car dashboard view using the various radial gauge features.",
Category = "Product Showcase",
DemoType = DemoTypes.Showcase,
DemoView = typeof(Views.CarDashboard)
};
DemoInfo clockShowCaseSample = new DemoInfo()
{
Name = "Clock",
Description = "This sample showcases how to create an analog clock using a radial gauge with different needles and inner dials.",
Category = "Product Showcase",
DemoType = DemoTypes.Showcase,
DemoView = typeof(Views.Clock)
};
DemoInfo tempMontiorShowCaseSample = new DemoInfo()
{
Name = "Temperature monitor",
Description = "This sample showcases how to design a temperature monitor using a radial gauge control with various color ranges, a needle pointer and annotations to indicate the current temperature value.",
Category = "Product Showcase",
DemoType = DemoTypes.Showcase,
DemoView = typeof(Views.TempMonitor)
};
DemoInfo distanceTrackerShowCaseSample = new DemoInfo()
{
Name = "Distance tracker",
Description = "This sample shows how to design a distance tracker using a radial gauge with a gradient range pointer and annotations.",
Category = "Product Showcase",
DemoType = DemoTypes.Showcase | DemoTypes.None,
DemoView = typeof(Views.DistanceTracker)
};
DemoInfo axisCustomScale = new DemoInfo()
{
Name = "Custom scale",
Description = "This sample shows a custom scale of non-linear scale intervals.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.CustomScale)
};
DemoInfo axisCustomLabels = new DemoInfo()
{
Name = "Custom labels",
Description = "This sample shows the custom label capabilities of the radial gauge using the LabelPrepared event.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.CustomLabels)
};
DemoInfo defaultView = new DemoInfo()
{
Name = "Default view",
Description = "This sample shows the default axis view of the radial gauge control.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.DefaultView)
};
DemoInfo axisMultipleAxis = new DemoInfo()
{
Name = "Multiple axis",
Description = "This sample shows the multi-axis capability of the radial gauge control.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.MultipleAxis)
};
DemoInfo axisLabelCustomization = new DemoInfo()
{
Name = "Label customization",
Description = "This sample shows the customization of the label, such as custom fonts and post fix.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.LabelCustomization)
};
DemoInfo axisTickCustomization = new DemoInfo()
{
Name = "Tick customization",
Description = "This sample shows the major and minor tick customization of the radial gauge.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.TickCustomization)
};
DemoInfo axisRangeColorForAxis = new DemoInfo()
{
Name = "Range colors for axis",
Description = "This sample shows how to use the respective range color to the axis elements such as ticks and labels.",
Category = "Axis",
DemoType = DemoTypes.None,
DemoView = typeof(Views.RangeColorForAxis)
};
DemoInfo axisBackgroundContent = new DemoInfo()
{
Name = "Axis background",
Description = "This sample shows how to design a compass using the radial gauge with a shape pointer, annotations and background content.",
Category = "Axis",
DemoView = typeof(Views.BackgroundContent)
};
DemoInfo rangePointer = new DemoInfo()
{
Name = "Range pointer",
Description = "This sample shows the addition of a range pointer with a gradient in the radial gauge.",
Category = "Pointers",
DemoType = DemoTypes.None,
DemoView = typeof(Views.RangePointer)
};
DemoInfo textPointer = new DemoInfo()
{
Name = "Content pointer",
Description = "This sample shows how to add content to display information using the content pointer support.",
Category = "Pointers",
DemoType = DemoTypes.None,
DemoView = typeof(Views.TextPointer)
};
DemoInfo multipleNeedle = new DemoInfo()
{
Name = "Multiple needle",
Description = "This sample shows the multi-axis and needle pointer capabilities of the radial gauge.",
Category = "Pointers",
DemoView = typeof(Views.MultipleNeedle)
};
DemoInfo markerPointer = new DemoInfo()
{
Name = "Shape pointer",
Description = "This sample shows the addition of the shape pointer support to the radial gauge.",
Category = "Pointers",
DemoType = DemoTypes.None,
DemoView = typeof(Views.MarkerPointer)
};
DemoInfo multipleRanges = new DemoInfo()
{
Name = "Multiple ranges",
Description = "This sample shows the multiple range capabilities of the radial gauge control.",
Category = "Ranges",
DemoType = DemoTypes.None,
DemoView = typeof(Views.MultipleRanges)
};
DemoInfo rangeThickness = new DemoInfo()
{
Name = "Range thickness",
Description = "This sample shows the range start and end width adjustment capabilities of the radial gauge.",
Category = "Ranges",
DemoType = DemoTypes.None,
DemoView = typeof(Views.RangeThickness)
};
DemoInfo rangelabel = new DemoInfo()
{
Name = "Range label",
Description = "This sample shows the range label capabilities of the radial gauge.",
Category = "Ranges",
DemoView = typeof(Views.RangeLabel)
};
DemoInfo AnnotationDirectionCompass = new DemoInfo()
{
Name = "Direction compass",
Description = "This sample shows the direction in a compass using the radial gauge annotations support.",
Category = "Annotation",
DemoType = DemoTypes.None,
DemoView = typeof(Views.DirectionCompass)
};
DemoInfo textAnnotation = new DemoInfo()
{
Name = "Text annotation",
Description = "This sample shows how to add text to the respective position by using an annotation support.",
Category = "Annotation",
DemoType = DemoTypes.None,
DemoView = typeof(Views.TextAnnotation)
};
DemoInfo tempTracker = new DemoInfo()
{
Name = "Image annotation",
Description = "This sample shows how to add images to different positions using an annotation support.",
Category = "Annotation",
DemoType = DemoTypes.None,
DemoView = typeof(Views.TempTracker)
};
DemoInfo pointerRangeSlider = new DemoInfo()
{
Name = "Radial slider",
Description = "This sample shows how to create a radial slider using the radial gauge with range pointer, shape pointer and drag interaction support.",
Category = "Pointer interaction",
DemoType = DemoTypes.None,
DemoView = typeof(Views.RangeSlider)
};
DemoInfo radialRangeSlider = new DemoInfo()
{
Name = "Radial range slider",
Description = "This sample shows how to create a radial range slider using the radial gauge with shape pointer and drag interaction support.",
Category = "Pointer interaction",
DemoType = DemoTypes.None,
DemoView = typeof(Views.RadialRangeSlider)
};
DemoInfo animationDemo = new DemoInfo()
{
Name = "Pointer animation",
Description = "This sample shows the pointer animation capabilities of the radial gauge control.",
Category = "Animation",
DemoView = typeof(Views.Animation)
};
List<DemoInfo> demos = new List<DemoInfo>()
{
gettingStartedSample,
sleepTrackerShowCaseSample,
carDashboardShowCaseSample,
clockShowCaseSample,
tempMontiorShowCaseSample,
distanceTrackerShowCaseSample,
defaultView,
axisMultipleAxis,
axisLabelCustomization,
axisTickCustomization,
axisCustomScale,
axisCustomLabels,
axisRangeColorForAxis,
axisBackgroundContent,
rangePointer,
multipleNeedle,
markerPointer,
textPointer,
multipleRanges,
rangeThickness,
rangelabel,
AnnotationDirectionCompass,
textAnnotation,
tempTracker,
pointerRangeSlider,
radialRangeSlider,
animationDemo
};
ControlInfo controlInfo = new ControlInfo()
{
Control = DemoControl.SfRadialGauge,
Description = "The Radial Gauge is a multi-purpose data visualization control to create modern, interactive and animated gauges.",
ControlCategory = ControlCategory.DataVisualization,
ControlBadge = ControlBadge.None,
Glyph = "\ue703",
ImageSource= "RadialGauge.png"
};
controlInfo.Demos.AddRange(demos);
DemoHelper.ControlInfos.Add(controlInfo);
}
}
}