-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathApp.xaml
593 lines (564 loc) · 38.8 KB
/
App.xaml
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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
<Application x:Class="syncfusion.olapclientdemos.wpf.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<!-- To set the Color to ScrollBar-->
<Style TargetType="ScrollBar">
<Setter Property="Background" Value="SkyBlue"/>
</Style>
<!-- Chart ToolBox Icon -->
<DrawingImage x:Key="ChartIcon">
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Brush="#FF326281" Geometry="M 19.2065,24.625C 17.8317,24.625 16.7129,23.5077 16.7129,22.1314L 16.7129,5.90853C 16.7129,4.53394 17.8317,3.41504 19.2065,3.41504C 20.5819,3.41504 21.7014,4.53394 21.7014,5.90853L 21.7014,22.1314C 21.7014,23.5077 20.5819,24.625 19.2065,24.625 Z M 11.7733,17.0953C 10.4685,17.0953 9.40633,16.0339 9.40633,14.7291L 9.40633,2.99414C 9.40633,1.68652 10.4685,0.625 11.7733,0.625C 13.0795,0.625 14.1424,1.68652 14.1424,2.99414L 14.1424,14.7291C 14.1424,16.0339 13.0795,17.0953 11.7733,17.0953 Z M 5.60864,8.85954C 6.74215,8.85954 7.66866,9.78809 7.66866,10.9223L 7.66866,17.4785C 7.66866,18.6113 6.74215,19.54 5.60864,19.54C 4.47652,19.54 3.54862,18.6113 3.54862,17.4785L 3.54862,10.9223C 3.54862,9.78809 4.47652,8.85954 5.60864,8.85954 Z " />
</DrawingGroup.Children>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Gauge ToolBox Icon -->
<DrawingImage x:Key="GaugeIcon">
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Brush="#FF326281" Geometry="F1 M 12.2527,24.625C 11.1621,24.625 10.2791,23.7406 10.2791,22.6542C 10.2791,21.5678 11.1621,20.6848 12.2485,20.6848L 12.6243,20.6848C 17.0691,20.6848 20.6848,17.0697 20.6848,12.627C 20.6848,8.18164 17.0691,4.56519 12.6243,4.56519C 8.18026,4.56519 4.56453,8.18164 4.56453,12.627L 4.56453,12.998C 4.56453,14.0858 3.68152,14.9701 2.59509,14.9701C 1.50793,14.9701 0.624959,14.0858 0.624959,12.998L 0.624959,12.627C 0.624959,6.00879 6.00736,0.625 12.6243,0.625C 19.2413,0.625 24.625,6.00879 24.625,12.627C 24.625,19.2427 19.2413,24.625 12.6243,24.625L 12.2527,24.625 Z M 15.9411,9.85067C 16.1168,10.0417 16.1051,10.3407 15.9127,10.5178L 7.58512,18.1908C 7.88269,18.6351 8.07369,19.1596 8.09721,19.734C 8.16292,21.3851 6.87789,22.7787 5.22677,22.8452C 3.57357,22.9116 2.18058,21.6258 2.11414,19.9734C 2.06429,18.7347 2.77498,17.6427 3.83032,17.1444C 4.18184,16.9784 4.57214,16.8787 4.98527,16.8635C 5.72225,16.8331 6.39901,17.0835 6.9388,17.5028L 15.274,9.82446C 15.4657,9.64592 15.7646,9.65983 15.9411,9.85067 Z "/>
</DrawingGroup.Children>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Grid ToolBox Icon -->
<DrawingImage x:Key="GridIcon">
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Brush="#FF326281" Geometry="F1 M 5.22786,19.8747C 5.22786,21.1446 4.19767,22.1755 2.92708,22.1755C 1.65515,22.1755 0.625,21.1446 0.625,19.8747L 0.631633,5.60514C 0.631633,4.33521 1.66178,3.3044 2.93372,3.3044C 4.205,3.3044 5.23584,4.33521 5.23584,5.60514L 5.22786,19.8747 Z M 9.46476,7.67879C 8.19283,7.67879 7.16199,6.64795 7.16199,5.37801C 7.16199,4.10531 8.19283,3.0745 9.46476,3.0745L 22.3202,3.0745C 23.5902,3.0745 24.6204,4.10531 24.6204,5.37801C 24.6204,6.64795 23.5902,7.67879 22.3202,7.67879L 9.46476,7.67879 Z M 14.7444,12.9272C 14.7444,14.1453 13.7574,15.1324 12.5393,15.1324L 9.36646,15.1324C 8.14897,15.1324 7.16199,14.1453 7.16199,12.9272C 7.16199,11.7105 8.14897,10.7234 9.36646,10.7234L 12.5393,10.7234C 13.7574,10.7234 14.7444,11.7105 14.7444,12.9272 Z M 24.625,12.9272C 24.625,14.1453 23.638,15.1324 22.4205,15.1324L 19.2477,15.1324C 18.0295,15.1324 17.0432,14.1453 17.0432,12.9272C 17.0432,11.7105 18.0295,10.7234 19.2477,10.7234L 22.4205,10.7234C 23.638,10.7234 24.625,11.7105 24.625,12.9272 Z M 14.7444,19.9464C 14.7444,21.1645 13.7574,22.1515 12.5393,22.1515L 9.36646,22.1515C 8.14897,22.1515 7.16199,21.1645 7.16199,19.9464C 7.16199,18.7296 8.14897,17.7426 9.36646,17.7426L 12.5393,17.7426C 13.7574,17.7426 14.7444,18.7296 14.7444,19.9464 Z M 24.625,19.9464C 24.625,21.1645 23.638,22.1515 22.4205,22.1515L 19.2477,22.1515C 18.0295,22.1515 17.0432,21.1645 17.0432,19.9464C 17.0432,18.7296 18.0295,17.7426 19.2477,17.7426L 22.4205,17.7426C 23.638,17.7426 24.625,18.7296 24.625,19.9464 Z "/>
</DrawingGroup.Children>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Load Icon -->
<DrawingImage x:Key="LoadBrush">
<DrawingImage.Drawing>
<GeometryDrawing Brush="#FF2E6281" Geometry="M4.0001711,4.5002102 L14.000032,4.5002102 C14.552154,4.5002102 14.999978,5.1721944 14.999978,6.0001789 L14.999978,11.999975 C14.999978,12.828093 14.552154,13.499955 14.000032,13.499955 L4.0001711,13.499955 C3.4460675,13.499955 3.0002397,12.828093 3.00024,11.999975 L3.00024,6.0001789 C3.0002397,5.1721944 3.4460675,4.5002102 4.0001711,4.5002102 z M4.000167,3.0003656 C2.8960428,3.0003656 2.0002178,4.3470555 2.0002176,6.0001883 L2.0002176,24.000043 C2.0002178,25.655956 2.8960428,27.000023 4.000167,27.000023 L26.000014,27.000023 C27.102075,27.000023 27.999971,25.655956 27.999971,24.000043 L27.999971,12.000022 C27.999971,10.346967 27.102075,9.0001551 26.000014,9.0001551 L18.000116,9.0001551 16.000232,9.0001551 16.000232,6.0001883 C16.000232,4.3470555 15.102049,3.0003656 13.999985,3.0003656 z M4.000167,0 L13.999985,0 C16.20803,1.2255917E-07 18.000116,2.6851187 18.000116,6.0001883 L26.000014,6.0001883 C28.208057,6.0001883 30,8.6850409 30,12.000022 L30,24.000043 C30,27.311759 28.208057,30.000001 26.000014,30.000001 L4.000167,30.000001 C1.7901478,30.000001 0,27.311759 0,24.000043 L0,6.0001883 C0,2.6851187 1.7901478,1.2255917E-07 4.000167,0 z"/>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Save Icon-->
<DrawingImage x:Key="SaveBrush">
<DrawingImage.Drawing>
<GeometryDrawing Brush="#FF2E6281" Geometry="M18.809882,20.689291 C19.965537,20.689291 20.895699,21.62412 20.895699,22.77692 L20.895699,27.370266 C20.895699,28.523065 19.965537,29.457894 18.809882,29.457894 17.654226,29.457894 16.724065,28.523065 16.724065,27.370266 L16.724065,22.77692 C16.724065,21.62412 17.654226,20.689291 18.809882,20.689291 z M8.8599702,-2.7525198E-05 L21.139984,-2.7525198E-05 26.429691,-2.7525198E-05 C28.402762,-2.7525198E-05 30.000009,1.599047 30.000009,3.5711137 L30.000009,25.91306 25.922331,30.000001 23.394921,30.000001 23.394921,21.290588 C23.394921,19.892573 22.258057,18.757624 20.867512,18.757624 L9.1324418,18.757624 C7.741897,18.757624 6.6050327,19.892573 6.6050327,21.290588 L6.6050327,30.000001 3.5702626,30.000001 C1.5971923,30.000001 -5.5052185E-05,28.402806 -5.5052185E-05,26.433558 L-5.5052185E-05,3.5711137 C-5.5052185E-05,1.599047 1.5971923,-2.7525198E-05 3.5702626,-2.7525198E-05 L8.8599702,-2.7525198E-05 z M8.8129923,3.0994712 C7.4318431,3.0994712 6.3137699,4.2212662 6.3137699,5.6042496 L6.3137699,11.711174 C6.3137699,13.095096 7.4318431,14.216891 8.8129923,14.216891 L20.876908,14.216891 C22.258057,14.216891 23.37613,13.095096 23.37613,11.711174 L23.37613,5.6042496 C23.37613,4.2212662 22.258057,3.0994712 20.876908,3.0994712 L8.8129923,3.0994712 z"/>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Re-name Icon -->
<DrawingImage x:Key="RenameIcon">
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Geometry="F1 M 3.6,25.8021L 22.6833,25.8021C 23.7879,25.8021 24.6833,26.6975 24.6833,27.8021L 24.6833,47C 24.6833,48.1046 23.7879,49 22.6833,49L 3.6,49C 2.49543,49 1.6,48.1046 1.6,47L 1.6,27.8021C 1.6,26.6975 2.49543,25.8021 3.6,25.8021 Z ">
<GeometryDrawing.Pen>
<Pen LineJoin="Round" Brush="#FF326281"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Geometry="F1 M 27.7167,2L 46.8,2C 47.9046,2 48.8,2.89543 48.8,4L 48.8,23.1979C 48.8,24.3025 47.9046,25.1979 46.8,25.1979L 27.7167,25.1979C 26.6121,25.1979 25.7167,24.3025 25.7167,23.1979L 25.7167,4C 25.7167,2.89543 26.6121,2 27.7167,2 Z ">
<GeometryDrawing.Pen>
<Pen LineJoin="Round" Brush="#FF326281"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Brush="#FF326281" Geometry="F1 M 22.4,47L 17.8167,47L 16.6167,43.2667L 9.74583,43.2667L 8.55833,47L 4,47L 10.7875,28.3333L 15.7667,28.3333L 22.4,47 Z M 15.4958,39.5333L 13.5375,33.3458C 13.3847,32.8764 13.2792,32.3167 13.2208,31.6667L 13.1167,31.6667C 13.0833,32.2139 12.9736,32.7556 12.7875,33.2917L 10.7917,39.5333L 15.4958,39.5333 Z "/>
<GeometryDrawing Brush="#FF326281" Geometry="F1 M 31.4896,23.428L 31.4896,4.76137L 38.5397,4.76137C 40.7004,4.76137 42.361,5.14193 43.5217,5.90304C 44.6824,6.66415 45.2627,7.73637 45.2627,9.11971C 45.2627,10.1225 44.9098,10.9996 44.2039,11.751C 43.498,12.5023 42.5956,13.0253 41.4966,13.3197L 41.4966,13.3739C 42.8912,13.5378 44.0052,14.0287 44.8387,14.8468C 45.6723,15.6648 46.0891,16.6614 46.0891,17.8364C 46.0891,19.553 45.4521,20.9142 44.1781,21.9197C 42.9041,22.9253 41.1638,23.428 38.9572,23.428L 31.4896,23.428 Z M 35.897,7.96137L 35.897,12.228L 37.7607,12.228C 38.6358,12.228 39.3245,12.0253 39.8266,11.6197C 40.3288,11.2142 40.5799,10.6558 40.5799,9.94471C 40.5799,8.62249 39.5483,7.96137 37.4852,7.96137L 35.897,7.96137 Z M 35.897,15.428L 35.897,20.228L 38.2255,20.228C 39.2183,20.228 39.9967,20.0079 40.5605,19.5676C 41.1243,19.1273 41.4062,18.5267 41.4062,17.7655C 41.4062,17.0378 41.1293,16.4662 40.5756,16.051C 40.0218,15.6357 39.247,15.428 38.2514,15.428L 35.897,15.428 Z "/>
<GeometryDrawing Brush="#FF326281" Geometry="F1 M 30.6049,27.0844L 29.8895,18.3245L 21.3083,19.9211L 30.6049,27.0844 Z ">
<GeometryDrawing.Pen>
<Pen LineJoin="Round" Brush="#FF326281"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Brush="#FF326281" Geometry="F1 M 24.3222,22.2082L 27.4871,24.6712L 21.3336,32.5783L 18.1686,30.1153L 24.3222,22.2082 Z ">
<GeometryDrawing.Pen>
<Pen LineJoin="Round" Brush="#FF326281"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingGroup.Children>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Minimized Icon -->
<Rectangle x:Key="MinimizedStyle" HorizontalAlignment="Left" Height="8" VerticalAlignment="Top" Width="8" StrokeThickness="2" Stroke="#FF7BBFE5"/>
<!-- Maximized Icon -->
<Path x:Key="MaximizedStyle" Data="M1.0618943,2.8478943 L1.0618943,5.9601057 4.174468,5.9601057 4.174468,2.8478943 z M0,1.786 L5.2360001,1.786 5.2360001,7.0220001 0,7.0220001 z M1.7980641,0 L7.0339999,0 7.0339999,5.237 5.9753761,5.237 5.9753761,1.0740429 5.9724808,1.0740429 5.9724808,1.062097 2.8599453,1.062097 1.786,1.0589598 z"
Fill="#FF7BBFE5" HorizontalAlignment="Left" Height="8" VerticalAlignment="Top" Width="8"/>
<!-- ToolBox Button Style -->
<Style x:Key="DashboardToolsButtonStyle" TargetType="{x:Type Button}">
<Style.Triggers>
<!--Images-->
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag}" Value="Chart">
<Setter Property="Content">
<Setter.Value>
<Image Source="{StaticResource ChartIcon}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag}" Value="Grid">
<Setter Property="Content">
<Setter.Value>
<Image Source="{StaticResource GridIcon}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag}" Value="Gauge">
<Setter Property="Content">
<Setter.Value>
<Image Source="{StaticResource GaugeIcon}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag}" Value="Save">
<Setter Property="Content">
<Setter.Value>
<Image Source="{StaticResource SaveBrush}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag}" Value="Load">
<Setter Property="Content">
<Setter.Value>
<Image Source="{StaticResource LoadBrush}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag}" Value="Rename">
<Setter Property="Content">
<Setter.Value>
<Image Source="{StaticResource RenameIcon}" />
</Setter.Value>
</Setter>
</DataTrigger>
<!-- Button Click Feedback effect-->
<!--<Trigger Property="IsPressed" Value="True">
<Setter Property="LayoutTransform">
<Setter.Value>
<ScaleTransform ScaleX="1.2" ScaleY="1.2" />
</Setter.Value>
</Setter>
</Trigger>-->
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="LayoutTransform">
<Setter.Value>
<ScaleTransform ScaleX="1.1" ScaleY="1.1" />
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle RadiusY="5" RadiusX="5" StrokeThickness="0"/>
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True"/>
<Trigger Property="IsDefaulted" Value="True"/>
<Trigger Property="IsMouseOver" Value="True"/>
<Trigger Property="IsPressed" Value="True"/>
<Trigger Property="IsEnabled" Value="False"/>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="Transparent" />
<Setter Property="Margin" Value="10,10,10,10" />
<Setter Property="Height" Value="35" />
<Setter Property="Width" Value="35" />
</Style>
<!-- Property Window Button Style-->
<Style x:Key="DashboardPropertyWindowButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="rect" Opacity="0.595" RadiusY="8.3" RadiusX="8.3" Stroke="#FF6BA4BD">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF1B4B6D" Offset="0.013"/>
<GradientStop Color="#FF071C3E" Offset="0.932"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" TextBlock.Foreground="#FF5D91AA"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True"/>
<Trigger Property="IsDefaulted" Value="True"/>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="rect" Property="Fill">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF2A6F9F"/>
<GradientStop Color="#FF071C3E" Offset="0.932"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Stroke" TargetName="rect" Value="#FF6BA4BD"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" TargetName="rect" Value="0.935"/>
<Setter Property="Fill" TargetName="rect">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#AE1B4B6D" Offset="0.987"/>
<GradientStop Color="#FF071C3E" Offset="0.068"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Stroke" TargetName="rect" Value="#FF6BA4BD"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False"/>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="MinWidth" Value="30" />
<Setter Property="MinHeight" Value="20" />
</Style>
<!-- TileView MinMax Button -->
<Style x:Key="DashboardMinMaxButtonStyle" TargetType="{x:Type ToggleButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border BorderBrush="#FF5691B2" BorderThickness="1,0,1,1" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="36" CornerRadius="0,0,4,0" RenderTransformOrigin="0.5,0.5">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF255A81" Offset="0.029"/>
<GradientStop Color="#FF1C4369" Offset="0.876"/>
</LinearGradientBrush>
</Border.Background>
<Border.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="-1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Border.RenderTransform>
<Grid>
<Rectangle x:Name="rect" Opacity="0" Stroke="#FF6BA4BD">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF1B4B6D" Offset="0.013"/>
<GradientStop Color="#FF071C3E" Offset="0.932"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" TextBlock.Foreground="#FF5D91AA"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True"/>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="rect" Property="Fill">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF2A6F9F"/>
<GradientStop Color="#FF071C3E" Offset="0.932"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Stroke" TargetName="rect" Value="#FF2A6F9F"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" TargetName="rect" Value="0.935"/>
<Setter Property="Fill" TargetName="rect">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#AE1B4B6D" Offset="0.987"/>
<GradientStop Color="#FF071C3E" Offset="0.068"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Stroke" TargetName="rect" Value="#FF2A6F9F"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Content" Value="{StaticResource MinimizedStyle}" />
</Trigger>
<Trigger Property="IsChecked" Value="False">
<Setter Property="Content" Value="{StaticResource MaximizedStyle}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False"/>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="MinWidth" Value="30" />
<Setter Property="MinHeight" Value="18" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Content" Value="{StaticResource MaximizedStyle}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=syncfusion:TileViewItem}, Path=TileViewItemState}" Value="Normal">
<Setter Property="Content" Value="{StaticResource MaximizedStyle}" />
</DataTrigger>
</Style.Triggers>
</Style>
<!-- Layout Border Styles -->
<Style x:Key="LayoutBorderStyle" TargetType="Border">
<!--<Setter Property="CornerRadius" Value="15" />-->
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Padding" Value="4" />
<Setter Property="BorderThickness" Value="3" />
<Setter Property="Background" Value="#FF061B3D" />
<Setter Property="Margin" Value="-3" />
</Style>
<!-- Top Site Background -->
<Style x:Key="TopSiteBackgroundStyle" TargetType="Rectangle">
<Setter Property="MinHeight" Value="70" />
<Setter Property="RadiusX" Value="15" />
<Setter Property="RadiusY" Value="15" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Width" Value="Auto" />
<Setter Property="Opacity" Value="0.70" />
<Setter Property="Fill">
<Setter.Value>
<LinearGradientBrush EndPoint="0.605,0.99" StartPoint="0.605,0.007">
<GradientStop Color="#FF081A37" Offset="0.997"/>
<GradientStop Color="#FF132A50" Offset="0.494"/>
<GradientStop Color="#394DBBDA" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="OpacityMask">
<Setter.Value>
<LinearGradientBrush EndPoint="0.971,0.525" StartPoint="0.016,0.479">
<GradientStop Color="Black" Offset="0.564"/>
<GradientStop Offset="1"/>
<GradientStop Color="#3EFFFFFF" Offset="0.099"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
<!-- Left ToolBox Site Background-->
<Style x:Key="ToolBoxSiteBackgroundStyle" TargetType="Rectangle">
<Setter Property="Opacity" Value="0.7" />
<Setter Property="MinWidth" Value="70" />
<Setter Property="Fill">
<Setter.Value>
<LinearGradientBrush EndPoint="0.994,0.479" StartPoint="0.054,0.479">
<GradientStop Color="#FF081A37" Offset="0.997"/>
<GradientStop Color="#FF132A50" Offset="0.18"/>
<GradientStop Color="#394DBBDA" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="OpacityMask">
<Setter.Value>
<LinearGradientBrush EndPoint="0.749,0.977" StartPoint="0.702,0.008">
<GradientStop Color="Black" Offset="0.233"/>
<GradientStop Offset="1"/>
<GradientStop Color="#00000000"/>
<GradientStop Color="#FFE5E5E5" Offset="0.838"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
<!-- Property Window Header -->
<Border x:Key="PropertyWindowExpanderHeader">
<TextBlock Text="Properties" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="0,0,0,0">
<TextBlock.LayoutTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="90"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</TextBlock.LayoutTransform>
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="0"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
</Border>
<!-- Property Window Expander Style -->
<Style x:Key="PropertyWindowExpanderStyle" TargetType="Expander">
<Setter Property="Foreground" Value="#FF76A8B6" />
<Setter Property="MinWidth" Value="50" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="ExpandDirection" Value="Left" />
<Setter Property="DockPanel.Dock" Value="Right" />
<Setter Property="Header" Value="{StaticResource PropertyWindowExpanderHeader}" />
</Style>
<!-- Property Window Expander Site Background -->
<Style x:Key="ExpanderSiteBackgroundStyle" TargetType="Rectangle">
<Setter Property="Width" Value="Auto" />
<Setter Property="Opacity" Value="0.7" />
<Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
<Setter Property="RenderTransform">
<Setter.Value>
<TransformGroup>
<RotateTransform CenterX="0.5" CenterY="0.5" Angle="180"/>
</TransformGroup>
</Setter.Value>
</Setter>
<Setter Property="OpacityMask">
<Setter.Value>
<LinearGradientBrush EndPoint="0.749,0.977" StartPoint="0.702,0.008">
<GradientStop Color="Black" Offset="0.233"/>
<GradientStop Offset="1"/>
<GradientStop Color="#00000000"/>
<GradientStop Color="#FFE5E5E5" Offset="0.838"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Fill">
<Setter.Value>
<LinearGradientBrush EndPoint="0.994,0.479" StartPoint="0.054,0.479">
<GradientStop Color="#FF081A37" Offset="0.997"/>
<GradientStop Color="#FF132A50" Offset="0.073"/>
<GradientStop Color="#394DBBDA" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
<!-- Add Icon used in the Add Control's window -->
<DrawingImage x:Key="AddIcon" >
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Geometry="F1 M 45.75,0.499995C 70.7409,0.499995 91,20.8337 91,45.9167C 91,70.9996 70.7409,91.3333 45.75,91.3333C 20.7591,91.3333 0.5,70.9996 0.5,45.9167C 0.5,20.8337 20.7591,0.499995 45.75,0.499995 Z M 79.1669,36.0001L 56,36.0001L 56,12.1702L 37.8336,12.1702L 37.8336,36.0001L 13.1666,36.0001L 13.1666,54.5001L 37.8336,54.5001L 37.8336,77.6666L 56,77.6666L 56,54.5001L 79.1669,54.5001L 79.1669,36.0001 Z ">
<GeometryDrawing.Pen>
<Pen LineJoin="Round" Brush="#FF000000"/>
</GeometryDrawing.Pen>
<GeometryDrawing.Brush>
<RadialGradientBrush RadiusX="0.507366" RadiusY="0.505505" Center="0.5,0.5" GradientOrigin="0.5,0.5">
<RadialGradientBrush.GradientStops>
<GradientStop Color="#FF159018" Offset="0"/>
<GradientStop Color="#FF09500A" Offset="1"/>
</RadialGradientBrush.GradientStops>
<RadialGradientBrush.RelativeTransform>
<TransformGroup/>
</RadialGradientBrush.RelativeTransform>
</RadialGradientBrush>
</GeometryDrawing.Brush>
</GeometryDrawing>
</DrawingGroup.Children>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- It will be used in the button and title bar of the Add Window-->
<DrawingImage x:Key="AddButtonIcon">
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Geometry="F1 M 17.1026,-9.53674e-007L 17.1026,9.49738L 27,9.49738L 27,17.3026L 17.1026,17.3026L 17.1026,27L 9.29739,27L 9.29739,17.3026L 0,17.3026L 0,9.49738L 9.29739,9.49738L 9.29739,-9.53674e-007L 17.1026,-9.53674e-007 Z ">
<GeometryDrawing.Brush>
<LinearGradientBrush StartPoint="-3.53213e-008,0.5" EndPoint="1,0.5">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FF438543" Offset="0"/>
<GradientStop Color="#FF15AC15" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</GeometryDrawing.Brush>
</GeometryDrawing>
</DrawingGroup.Children>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Add Dialog - Add Button Style -->
<Style TargetType="Button" x:Key="AddButtonStyle">
<Setter Property="Height" Value="17.6" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="MinWidth" Value="75" />
<Setter Property="MinHeight" Value="24" />
<Setter Property="Margin" Value="0,0,0,10" />
<Setter Property="ToolTip" Value="Click here to Add the control" />
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{DynamicResource AddButtonIcon}" MaxHeight="60" MaxWidth="60" Margin="3" />
<TextBlock Margin="5,0,0,0" Text="Add" />
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Tile View Item Style -->
<Style TargetType="syncfusion:TileViewItem">
<Setter Property="Margin" Value="13" />
<Setter Property="HeaderBackground">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.75">
<GradientStop Color="#FF19395A" Offset="0"/>
<GradientStop Color="#DB1D3A68" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="HeaderBorderThickness" Value="0.25" />
<Setter Property="HeaderCornerRadius" Value="7,7,0,0" />
<Setter Property="HeaderBorderBrush" Value="#C556D0EF" />
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#4F56D0EF"/>
<GradientStop Color="#001D3A68" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" Value="0.25" />
<Setter Property="BorderBrush" Value="#C556D0EF" />
<Setter Property="CornerRadius" Value="7" />
<Setter Property="HeaderForeground" Value="#FF76A8B6" />
<Setter Property="Foreground" Value="#FF76A8B6" />
<Setter Property="CloseButtonVisibility" Value="Visible"/>
<Setter Property="MinMaxButtonVisibility" Value="Visible" />
<Setter Property="CloseMode" Value="Delete" />
<Setter Property="MinMaxButtonStyle" Value="{StaticResource DashboardMinMaxButtonStyle}" />
</Style>
<!-- Tile View Control Style-->
<Style TargetType="syncfusion:TileViewControl">
<Setter Property="AllowItemRepositioning" Value="False" />
<!-- Hard Coded the Margin to work around the elements gets cut issue in TileView-->
<Setter Property="Margin" Value="-25,-25,0,0" />
</Style>
<!-- OlapGrid Style -->
<Style TargetType="syncfusion:OlapGrid" x:Key="olapGridStyle">
<Setter Property="Background" Value="Transparent" />
<Setter Property="GridLineStroke" Value="#FF7CBBD1" />
<Setter Property="ValueCellStyle">
<Setter.Value>
<syncfusion:OlapGridCellStyle Background="Transparent" Foreground="#FF7CBBD1" />
</Setter.Value>
</Setter>
<Setter Property="ValueCellStyle">
<Setter.Value>
<syncfusion:OlapGridCellStyle Background="Transparent" Foreground="#FF7CBBD1" />
</Setter.Value>
</Setter>
<Setter Property="ColumnHeaderStyle">
<Setter.Value>
<syncfusion:OlapGridCellStyle Background="#FF204B6D" Foreground="#FF7CBBD1" />
</Setter.Value>
</Setter>
<Setter Property="RowHeaderStyle">
<Setter.Value>
<syncfusion:OlapGridCellStyle Background="#FF204B6D" Foreground="#FF7CBBD1" />
</Setter.Value>
</Setter>
<Setter Property="SummaryColumnStyle">
<Setter.Value>
<syncfusion:OlapGridCellStyle Background="#FF112A4A" Foreground="#FF7CBBD1" />
</Setter.Value>
</Setter>
<Setter Property="SummaryRowStyle">
<Setter.Value>
<syncfusion:OlapGridCellStyle Background="#FF112A4A" Foreground="#FF7CBBD1" />
</Setter.Value>
</Setter>
</Style>
<!--OlapChart Grid Line Stroke and Foreground Color-->
<Pen x:Key="chartGridLineStroke" Brush="#FF7CBBD1" Thickness="0.5" />
<SolidColorBrush x:Key="foregroundColor" Color="#FF7CBBD1" />
</Application.Resources>
</Application>