-
Notifications
You must be signed in to change notification settings - Fork 129
/
SparklineDemosViewModel.cs
68 lines (59 loc) · 7.58 KB
/
SparklineDemosViewModel.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
#region Copyright Syncfusion Inc. 2001-2024.
// Copyright Syncfusion Inc. 2001-2024. 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace syncfusion.sparklinedemos.wpf
{
public class SparklineDemosViewModel : DemoBrowserViewModel
{
public override List<ProductDemo> GetDemosDetails()
{
var productdemos = new List<ProductDemo>();
productdemos.Add(new SparklineProductDemos());
return productdemos;
}
}
public class SparklineProductDemos : ProductDemo
{
public SparklineProductDemos()
{
this.Product = "Sparkline";
this.ProductCategory = "CHARTS";
this.ListViewImagePathData = new System.Windows.Shapes.Path()
{
Data = Geometry.Parse("M3.83289 0.500488C4.06539 0.510718 4.2601 0.680012 4.30253 0.908841L4.91218 4.19652C5.0191 4.11467 5.15796 4.07667 5.29892 4.10028C5.53983 4.14063 5.71632 4.34914 5.71632 4.59341V4.71165C5.77728 4.70754 5.8394 4.71458 5.8996 4.73348C6.0728 4.78785 6.20293 4.93183 6.23957 5.10963L6.63914 7.04893C6.65266 7.00309 6.6686 6.95757 6.6873 6.91274C6.74934 6.76405 6.82979 6.40012 6.89712 5.99664C6.92896 5.80587 6.9554 5.62196 6.97372 5.47452C6.9829 5.40072 6.98981 5.33786 6.99434 5.28896C6.99661 5.26451 6.99815 5.24496 6.99909 5.23016C6.99998 5.21613 7.00009 5.21017 7.0001 5.21017C7.0001 5.20994 7.0001 5.21017 7.0001 5.21017C7.0001 5.05968 7.05335 4.90474 7.0842 4.81848C7.12155 4.71405 7.16965 4.59877 7.21153 4.4984L7.21433 4.49169C7.25964 4.38308 7.29806 4.29066 7.32575 4.21321C7.34374 4.16294 7.35003 4.13778 7.35189 4.13132C7.35593 3.9934 7.387 3.65098 7.4196 3.31027C7.45638 2.92597 7.50045 2.4929 7.52983 2.21129C7.53683 2.14414 7.55736 2.07909 7.59019 2.02009L7.94154 1.38851C8.05857 1.17815 8.30887 1.08104 8.53715 1.15743C8.76543 1.23382 8.90687 1.46203 8.87371 1.70046C8.84634 1.89729 8.81315 2.21602 8.80357 2.52096C8.79878 2.67353 8.80019 2.81423 8.80939 2.93022C8.81396 2.98793 8.8201 3.03466 8.82694 3.07065C8.83378 3.10666 8.83951 3.12215 8.83991 3.12321C8.96828 3.4309 9.1905 4.07101 9.32348 4.46377C9.38564 4.26465 9.44664 4.08874 9.49811 3.96537L9.84947 3.12327C9.9332 2.92257 10.1371 2.79901 10.3537 2.81763C10.5704 2.83626 10.7502 2.99279 10.7984 3.20484L11.3255 5.52063C11.3437 5.60053 11.3417 5.68255 11.3212 5.75981C11.3211 5.75956 11.3213 5.76005 11.3212 5.75981C11.3462 5.82027 11.387 5.9058 11.4506 6.02009C11.5243 6.15274 11.5917 6.25244 11.6488 6.32545C11.6698 6.28396 11.6916 6.23978 11.7137 6.19385C11.8086 5.9965 11.9016 5.78375 11.9576 5.64958C12.018 5.50474 12.1429 5.39668 12.295 5.35774C12.447 5.31881 12.6085 5.35351 12.7311 5.45147C12.833 5.53287 12.9848 5.66593 13.1163 5.80877C13.1333 5.82724 13.1507 5.84666 13.1682 5.8669C13.2555 5.79969 13.3627 5.76316 13.4731 5.76316H14.0001C14.2762 5.76316 14.5001 5.98702 14.5001 6.26316C14.5001 6.53931 14.2762 6.76316 14.0001 6.76316H13.6398C13.5575 6.82146 13.4629 6.88255 13.3713 6.9294C13.3116 6.95995 13.1741 7.02754 13.016 7.03143C12.9267 7.03363 12.7616 7.0166 12.6197 6.88368C12.5862 6.85234 12.559 6.8192 12.5369 6.78552C12.4565 6.94362 12.3632 7.11042 12.2759 7.21509C12.1438 7.37341 11.9518 7.47369 11.73 7.47369C11.5304 7.47369 11.361 7.39273 11.2362 7.30728C10.9893 7.13824 10.7678 6.84986 10.5767 6.50623C10.4289 6.2406 10.3362 6.02239 10.3055 5.84169C10.2942 5.77549 10.2838 5.67379 10.3093 5.56194L10.1925 5.04883C10.166 5.1419 10.1395 5.23871 10.114 5.3367C10.0014 5.76834 9.93253 6.1274 9.93253 6.26316C9.93253 6.30457 9.93052 6.35298 9.92286 6.40317C9.91639 6.44559 9.9003 6.5298 9.84918 6.61733C9.79187 6.71543 9.6581 6.86297 9.43078 6.87694C9.24097 6.88861 9.11105 6.79542 9.06554 6.75907C8.96926 6.68215 8.91108 6.58274 8.88678 6.54002C8.85298 6.48062 8.82229 6.41484 8.79541 6.35043C8.69608 6.11236 8.58118 5.72621 8.58118 5.42106C8.58118 5.31081 8.56203 5.22505 8.54221 5.16706C8.53223 5.1379 8.52253 5.11709 8.51606 5.1049C8.51471 5.10236 8.5136 5.10037 8.51276 5.09891C8.47709 5.05364 8.4495 5.00252 8.43123 4.94778C8.39328 4.83409 8.3405 4.6782 8.28193 4.50837C8.27675 4.52353 8.27182 4.53747 8.26735 4.54995C8.23001 4.65438 8.1819 4.76966 8.14002 4.87003L8.13722 4.87674C8.09191 4.98535 8.05349 5.07777 8.0258 5.15522C8.00785 5.20541 8.00155 5.23057 7.99967 5.23708C7.99456 5.40734 7.94484 5.79362 7.88348 6.16126C7.81906 6.54726 7.72383 7.02544 7.6102 7.2978C7.57223 7.38878 7.56011 7.54718 7.58074 7.76963C7.58991 7.86855 7.60354 7.96322 7.61706 8.0571L7.61895 8.07025C7.61956 8.07452 7.6202 8.07891 7.62085 8.0834C7.63238 8.16328 7.64875 8.2766 7.64875 8.36843C7.64875 8.51078 7.60346 8.63619 7.57069 8.71351C7.53382 8.80053 7.48736 8.8842 7.44317 8.95623C7.35474 9.10035 7.25183 9.23583 7.1813 9.32035C7.06933 9.45453 6.89544 9.52051 6.72265 9.49439C6.54986 9.46826 6.40324 9.35381 6.33595 9.19253L5.80892 7.92938C5.79659 7.89981 5.78712 7.86912 5.78066 7.83775L5.44165 6.19238L4.98495 6.62583C4.81784 6.78444 4.56397 6.80831 4.37021 6.68365C4.17645 6.55898 4.09296 6.31805 4.16805 6.10022L4.43515 5.32535L4.25662 5.21838C4.13359 5.14466 4.04815 5.02166 4.022 4.88064L3.71339 3.21642L3.58992 3.66031C3.57091 3.72867 3.53756 3.79219 3.49211 3.84667L2.86945 4.59284L2.54362 6.15475C2.49526 6.38654 2.29094 6.55264 2.05415 6.55264H1.75791L1.48956 7.83896C1.43317 8.10928 1.16831 8.2827 0.897992 8.22631C0.627669 8.16992 0.454245 7.90506 0.510638 7.63474L0.861989 5.95053C0.910346 5.71873 1.11466 5.55264 1.35145 5.55264H1.6477L1.91604 4.26632C1.9328 4.18601 1.96905 4.11106 2.02161 4.04808L2.65534 3.28862L3.3292 0.866015C3.39157 0.641797 3.60039 0.490258 3.83289 0.500488Z"),
Width = 15,
Height = 10,
};
this.Demos = new List<DemoInfo>();
this.HeaderImageSource = new BitmapImage(new Uri(@"/syncfusion.demoscommon.wpf;component/Assets/ProductCategoryImages/Charts.png", UriKind.RelativeOrAbsolute));
this.ControlDescription = "A Sparkline is a very small chart, typically drawn without axes or coordinates. It presents data in a simple and highly condensed way.";
this.GalleryViewImageSource = new BitmapImage(new Uri(@"/syncfusion.demoscommon.wpf;component/Assets/GalleryViewImages/Sparkline.png", UriKind.RelativeOrAbsolute));
DemoInfo GettingStartedDemo = new DemoInfo()
{
SampleName = "Getting Started",
GroupName = "SPARKLINE",
Description = "Sparkline is a very small chart, typically drawn without axes or coordinates. This demo illustrates different types of spark lines and its functionalities.",
DemoViewType = typeof(GettingStarted),
};
List<Documentation> GettingStartedHelpDocuments = new List<Documentation>()
{
new Documentation(){ Content = "Sparkline - Getting Started", Uri = new Uri("https://help.syncfusion.com/wpf/sparkline/getting-started")}
};
GettingStartedDemo.Documentations = GettingStartedHelpDocuments;
this.Demos.Add(GettingStartedDemo);
this.Demos.Add(new DemoInfo() { SampleName = "Sparkline In Grid", GroupName = "SPARKLINE", DemoViewType = typeof(Sparkline), Description = "This sample demonstrates how the sparkline can be loaded as content for a cell inside the grid." });
}
}
}