forked from syncfusion/wpf-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPresentationDemosViewModel.cs
201 lines (198 loc) · 9.09 KB
/
PresentationDemosViewModel.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
#region Copyright Syncfusion Inc. 2001-2021.
// Copyright Syncfusion Inc. 2001-2021. 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.presentationdemos.wpf
{
public class PresentationDemosViewModel : DemoBrowserViewModel
{
public override List<ProductDemo> GetDemosDetails()
{
var productdemos = new List<ProductDemo>();
productdemos.Add(new PresentationProductDemos());
return productdemos;
}
}
public class PresentationProductDemos : ProductDemo
{
public PresentationProductDemos()
{
this.Product = "Presentation";
this.ProductCategory = "FILE FORMAT";
this.Demos = new List<DemoInfo>();
this.Demos.Add(new DemoInfo()
{
SampleName = "Hello World",
GroupName = "Getting Started",
Description = "This sample demonstrates how to create slides with simple text in a PowerPoint presentation.",
DemoViewType = typeof(HelloWorld)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "PPTX to Image",
GroupName = "Conversion",
Description = "This sample demonstrates how to convert the PowerPoint slide to an image.",
DemoViewType = typeof(PPTXToImage)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "PPTX to PDF",
GroupName = "Conversion",
Description = "This sample demonstrates how to convert a PowerPoint presentation to PDF.",
DemoViewType = typeof(PPTXToPDF)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Images",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to insert an image in a PowerPoint slide.",
DemoViewType = typeof(Images)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Slides",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to create slides with simple text, table and image in a PowerPoint presentation.",
DemoViewType = typeof(Slide)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Tables",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to add tables in a PowerPoint presentation.",
DemoViewType = typeof(Tables)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Notes",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to add and convert the notes pages of a PowerPoint slide.",
DemoViewType = typeof(Notes)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "OLE Object",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to insert and extract a OLE Object in PowerPoint presentation.",
DemoViewType = typeof(OLEObject)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Comments",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to add comments to a presentation slide.",
DemoViewType = typeof(Comments)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Connector",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to insert the connectors in a PowerPoint slide.",
DemoViewType = typeof(Connectors)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Header And Footer",
GroupName = "Slide Elements",
Description = "This sample demonstrates how to insert the header and footer in a PowerPoint presentation.",
DemoViewType = typeof(HeaderAndFooter)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Create Animation",
GroupName = "Animation",
Description = "This sample demonstrates how to add different animation effect for shapes.",
DemoViewType = typeof(Animation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Modify Animation",
GroupName = "Animation",
Description = "This sample demonstrates how to modify the animation effect for shapes.",
DemoViewType = typeof(ModifyAnimation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Slide Transition",
GroupName = "Transition",
Description = "This sample demonstrates how to create slide transition effects in PowerPoint presentation.",
DemoViewType = typeof(SlideTransition)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Cloning Slide",
GroupName = "Clone and Merge",
Description = "This sample demonstrates cloning an individual slide from a PowerPoint presentation and merge it to another PowerPoint presentation with source and destination paste options.",
DemoViewType = typeof(CloningSlide)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Merging Presentation",
GroupName = "Clone and Merge",
Description = "This sample demonstrates how to modify a mathematical equation in a Word document using Essential DocIO.",
DemoViewType = typeof(MergingPresentation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Encryption and Decryption",
GroupName = "Security",
Description = "This sample demonstrates how to add encryption and decryption in a PowerPoint presentation.",
DemoViewType = typeof(EncryptDecrypt)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Write Protection",
GroupName = "Security",
Description = "This sample demonstrates how to set write protection for a PowerPoint presentation with password.",
DemoViewType = typeof(WriteProtection)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "SmartArt Creation",
GroupName = "SmartArt",
Description = "This sample demonstrates how to create SmartArt diagram in a PowerPoint presentation and convert it to PDF document.",
DemoViewType = typeof(SmartArtCreation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Manipulating SmartArt",
GroupName = "SmartArt",
Description = "This sample demonstrates how to add/remove nodes in a SmartArt diagram and edit text of the nodes in a PowerPoint presentation.",
DemoViewType = typeof(ManipulatingSmartArt)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Customizing Appearance",
GroupName = "SmartArt",
Description = "This sample demonstrates how to customize the appearance of a SmartArt diagram in a PowerPoint slide.",
DemoViewType = typeof(CustomizingAppearance)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Chart Creation",
GroupName = "Working With Chart",
Description = "This sample demonstrates how to create charts in a presentation using PowerPoint presentation.",
DemoViewType = typeof(ChartCreation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Chart from Excel Data",
GroupName = "Working With Chart",
Description = "This sample demonstrates how to create a chart in a PowerPoint presentation, from the data in an existing excel file.",
DemoViewType = typeof(ExcelDataToChart)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Customizing Appearance",
GroupName = "Working With Chart",
Description = "This sample demonstrates how to modify charts in a presentation using PowerPoint presentation.",
DemoViewType = typeof(ChartModifications)
});
}
}
}