forked from syncfusion/wpf-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XlsIODemosViewModel.cs
483 lines (424 loc) · 19.2 KB
/
XlsIODemosViewModel.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
#region Copyright Syncfusion Inc. 2001-2022.
// Copyright Syncfusion Inc. 2001-2022. 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
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using syncfusion.demoscommon.wpf;
using System.Collections.Generic;
namespace syncfusion.xlsiodemos.wpf
{
public class XlsIODemosViewModel : DemoBrowserViewModel
{
public override List<ProductDemo> GetDemosDetails()
{
var productdemos = new List<ProductDemo>();
productdemos.Add(new XlsIOProductDemos());
return productdemos;
}
}
public class XlsIOProductDemos : ProductDemo
{
public XlsIOProductDemos()
{
this.Product = "XlsIO";
this.ProductCategory = "FILE FORMAT";
this.Tag = Tag.Updated;
this.Demos = new List<DemoInfo>();
this.Demos.Add(new DemoInfo()
{
SampleName = "Budget Planner",
GroupName = "PRODUCT SHOWCASE",
Description = "This sample demonstrates how to create a simple Budget planner using XlsIO.",
DemoViewType = typeof(BudgetPlanner)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Attendance Tracker",
GroupName = "PRODUCT SHOWCASE",
Description = "This sample demonstrates how to use Attendance Tracker in spreadsheets using XlsIO.",
DemoViewType = typeof(AttendanceTracker)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Call Center Dashboard",
GroupName = "PRODUCT SHOWCASE",
Description = "This sample demonstrates how to create a simple Call Center dashboard using XlsIO.",
DemoViewType = typeof(CallCenterDashboard)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Create Spreadsheet",
GroupName = "GETTING STARTED",
Description = "This sample demonstrates how to create a simple Excel document with formulas and formatting using XlsIO.",
DemoViewType = typeof(CreateSpreadsheet)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Find And Extract",
GroupName = "GETTING STARTED",
Description = "This sample demonstrates how to extract data from a spreadsheet using XlsIO.",
DemoViewType = typeof(FindAndExtract)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Replace Options",
GroupName = "GETTING STARTED",
Description = "This sample demonstrates how to replace text in a spreadsheet using XlsIO.",
DemoViewType = typeof(ReplaceOptions)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Conditional Formatting",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to apply conditional formats using XlsIO.",
DemoViewType = typeof(ConditionalFormatting)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Format Cells",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to apply formatting to the cells using XlsIO.",
DemoViewType = typeof(FormatCells)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Styles And Formatting",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to apply styles and formatting using XlsIO.",
DemoViewType = typeof(StylesAndFormatting)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Formula",
GroupName = "FORMULAS",
Description = "This sample demonstrates how to use formulas in spreadsheets using XlsIO.",
DemoViewType = typeof(Formula)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Compute All Formulas",
GroupName = "FORMULAS",
Description = "This sample demonstrates how to use formulas in spreadsheets using XlsIO.",
DemoViewType = typeof(ComputeAllFormulas)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Compute Specific Formula",
GroupName = "FORMULAS",
Description = "This sample demonstrates the calculation of formula entered during run time using the calculate engine.",
DemoViewType = typeof(ComputeSpecificFormula)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Table Formula",
GroupName = "FORMULAS",
Description = "This sample demonstrates how to use table formula in spreadsheets using XlsIO.",
DemoViewType = typeof(TableFormula)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "External Formula",
GroupName = "FORMULAS",
Description = "This sample demonstrates how to use external formula in spreadsheets using XlsIO.",
DemoViewType = typeof(ExternalFormula)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Data Validation",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to use data validation in spreadsheets using XlsIO.",
DemoViewType = typeof(DataValidation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Form Controls",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to use form controls in spreadsheet using XlsIO.",
DemoViewType = typeof(FormControls)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Interactive Features",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to use interactive features in spreadsheet using XlsIO.",
DemoViewType = typeof(InteractiveFeatures)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Ole Object",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to use OLE objects in spreadsheet using XlsIO.",
DemoViewType = typeof(OleObject)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Performance",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates the performance of XlsIO when handling larger files.",
DemoViewType = typeof(Performance)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Range Manipulation",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to manipulate cells in a spreadsheet using XlsIO.",
DemoViewType = typeof(RangeManipulation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Sorting",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to perform sorting in a spreadsheet using XlsIO.",
DemoViewType = typeof(Sorting)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Filters",
GroupName = "DATA MANAGEMENT",
Description = "This sample demonstrates how to apply filters in a spreadsheet using XlsIO.",
DemoViewType = typeof(Filters)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Import Export Data Table",
GroupName = "DATA BINDING",
Description = "This sample demonstrates exporting data from Excel to a data table, and import data from the data table to the Grid.",
DemoViewType = typeof(ImportExportDataTable)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Template Marker",
GroupName = "DATA BINDING",
Description = "This sample demonstrates how to use Template Markers in spreadsheets using XlsIO.",
DemoViewType = typeof(TemplateMarker)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Collection Objects",
GroupName = "DATA BINDING",
Description = "This sample demonstrates how to use Collection Objects in spreadsheets using XlsIO.",
DemoViewType = typeof(CollectionObjects)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Import Nested Collection",
GroupName = "DATA BINDING",
Description = "This sample demonstrates how to import data directly from nested collection objects with import data layout and group options in spreadsheets using XlsIO.",
DemoViewType = typeof(ImportNestedCollection)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Import HTML Table",
GroupName = "DATA BINDING",
Tag = Tag.Updated,
Description = "This sample demonstrates how to convert HTML table to worksheet using Essential XlsIO.",
DemoViewType = typeof(ImportHTMLTable)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Chart Worksheet",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create a simple chart sheet using XlsIO.",
DemoViewType = typeof(ChartWorksheet)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Embedded Chart",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create a simple chart using XlsIO.",
DemoViewType = typeof(EmbeddedChart)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Sparklines",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create sparkline charts using XlsIO.",
DemoViewType = typeof(Sparklines)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Box and Whisker",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create Box and Whisker chart using XlsIO.",
DemoViewType = typeof(BoxAndWhisker)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Funnel Chart",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create Funnel chart using XlsIO.",
DemoViewType = typeof(Funnel)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Treemap",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create Treemap chart using XlsIO.",
DemoViewType = typeof(Treemap)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Sunburst",
GroupName = "CHARTS",
Description = "This sample demonstrates how to create Sunburst chart using XlsIO.",
DemoViewType = typeof(Sunburst)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Row Column Manipulation",
GroupName = "SHEET MANAGEMENT",
Description = "This sample demonstrates how to customize rows and columns in a spreadsheet using XlsIO.",
DemoViewType = typeof(RowColumnManipulation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Worksheet Management",
GroupName = "SHEET MANAGEMENT",
Description = "This sample demonstrates how to customize spreadsheets using XlsIO.",
DemoViewType = typeof(WorksheetManagement)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Excel To PDF",
GroupName = "EXPORT",
Description = "This sample demonstrates how to convert Excel spreadsheets to PDF document using XlsIO.",
DemoViewType = typeof(ExcelToPDF)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Worksheet To HTML",
GroupName = "EXPORT",
Description = "This sample demonstrates how to convert Excel spreadsheets to HTML document using XlsIO.",
DemoViewType = typeof(WorksheetToHTML)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Worksheet To Image",
GroupName = "EXPORT",
Description = "This sample demonstrates how to convert spreadsheets to image using XlsIO.",
DemoViewType = typeof(WorksheetToImage)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Excel To ODS",
GroupName = "EXPORT",
Description = "This sample demonstrates how to convert Excel spreadsheets to OpenDocument spreadsheets using XlsIO.",
DemoViewType = typeof(ExcelToODS)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Print",
GroupName = "EXPORT",
Description = "This sample demonstrates how to convert Excel spreadsheets to PDF document and print the converted PDF document using XlsIO.",
DemoViewType = typeof(Print)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Excel To JSON",
GroupName = "EXPORT",
Description = "This sample demonstrates the conversion of Excel documents to JSON file using Essential XlsIO.",
DemoViewType = typeof(ExcelToJSON)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Document Settings",
GroupName = "SETTINGS",
Description = "This sample demonstrates how to include document properties to spreadsheets using XlsIO.",
DemoViewType = typeof(DocumentSettings)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Encrypt and Decrypt",
GroupName = "SETTINGS",
Description = "This sample demonstrates how to encrypt and decrypt workbooks using XlsIO.",
DemoViewType = typeof(EncryptAndDecrypt)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Workbook Protection",
GroupName = "SETTINGS",
Description = "This sample demonstrates how to set protection for a workbook using XlsIO.",
DemoViewType = typeof(WorkbookProtection)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Worksheet Protection",
GroupName = "SETTINGS",
Description = "This sample demonstrates how to Lock and Unlock spreadsheets using XlsIO.",
DemoViewType = typeof(WorksheetProtection)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Pivot Chart",
GroupName = "BUSINESS INTELLIGENCE",
Description = "This sample demonstrates how to use Pivot Charts in spreadsheets using XlsIO.",
DemoViewType = typeof(PivotChart)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Pivot Table",
GroupName = "BUSINESS INTELLIGENCE",
Description = "This sample demonstrates how to use PivotTable in spreadsheets using XlsIO.",
DemoViewType = typeof(PivotTable)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Pivot Table Layout",
GroupName = "BUSINESS INTELLIGENCE",
Description = "This sample deomonstrates how to layout pivot table using XlsIO.",
DemoViewType = typeof(PivotTableLayout)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Tables",
GroupName = "BUSINESS INTELLIGENCE",
Description = "This sample deomonstrates how to use tables in spreadsheets using XlsIO.",
DemoViewType = typeof(Tables)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "AutoShapes",
GroupName = "SHAPES",
Description = "This sample demonstrates how to use AutoShapes in spreadsheets using XlsIO.",
DemoViewType = typeof(AutoShape)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Group Shapes",
GroupName = "SHAPES",
Description = "This sample demonstrates how to use group shapes in spreadsheets using XlsIO.",
DemoViewType = typeof(GroupShape)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Create Macro",
GroupName = "MACRO",
Description = "This sample demonstrates how to create macros in spreadsheets using XlsIO.",
DemoViewType = typeof(CreateMacro)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Edit Macro",
GroupName = "MACRO",
Description = "This sample demonstrates how to edit macros in spreadsheets using XlsIO.",
DemoViewType = typeof(EditMacro)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Yearly Sales",
GroupName = "PRODUCT SHOWCASE",
Description = "This demo shows the product sales of a company for each month in a specific year by visualizing the data with charts.",
DemoViewType = typeof(YearlySales)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Expenses Report",
GroupName = "PRODUCT SHOWCASE",
Description = "This demo shows a expenses report with the difference between expected cost and actual cost for the different categories of a company’s expenses.",
DemoViewType = typeof(ExpensesReport)
});
}
}
}