Source

main-vinayFork / Source / Excel / Excel.AddIn / Excel.AddIn / Resources / Styles.xaml

Full commit
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
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:extToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    mc:Ignorable="d">

    <!-- Resource dictionary entries should be defined here. -->
    <BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
    <ImageBrush x:Key="PatternImageBrush" Viewport="0,0,3,3" TileMode="Tile" ViewportUnits="Absolute" 
                ImageSource="pack://application:,,,/DataUp.Addin;component/Resources/Images/Pattern.png"/>
    <Style x:Key="RoundedShadowControl" TargetType="{x:Type ContentControl}">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ContentControl}">
                    <Grid>
                        <Rectangle Stroke="#CC252525" StrokeThickness="1" RadiusX="5" RadiusY="5" Opacity="0.5"/>
                        <Rectangle Stroke="#99252525" StrokeThickness="1" Margin="-1" RadiusX="6" RadiusY="6" Opacity="0.5"/>
                        <Rectangle Stroke="#66252525" StrokeThickness="1" Margin="-2" RadiusX="7" RadiusY="7" Opacity="0.5"/>
                        <Rectangle Stroke="#33252525" StrokeThickness="1" Margin="-3" RadiusX="8" RadiusY="8" Opacity="0.5"/>
                        <Rectangle Stroke="#19252525" StrokeThickness="1" Margin="-4" RadiusX="9" RadiusY="9" Opacity="0.5"/>
                        <Rectangle Stroke="#05252525" StrokeThickness="1" Margin="-5" RadiusX="10" RadiusY="10" Opacity="0.5"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="CloseMinimizeButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Width" Value="16"/>
        <Setter Property="Height" Value="16"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border" Background="#00000000">
                        <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="True" SnapsToDevicePixels="True">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path x:Name="textBlock" Data="M0.37499994,4.5484371L1.5820313,4.5484371 3.2988281,7.5015621C3.4121091,7.6968746,3.5117185,7.8921871,3.5976563,8.0874996L3.6210938,8.0874996C3.7460935,7.8296871,3.8554685,7.6265621,3.9492188,7.4781246L5.7363281,4.5484371 6.8671875,4.5484371 4.2246094,8.7144527 6.9023438,12.950781 5.7011719,12.950781 3.7675781,9.733984C3.7089841,9.6363277,3.644531,9.4976559,3.5742188,9.3179684L3.5507813,9.3179684C3.5117185,9.4078121,3.4453123,9.546484,3.3515625,9.733984L1.359375,12.950781 0.15234371,12.950781 2.9648438,8.7261715z" Fill="#FF818181" HorizontalAlignment="Center" Height="7.875" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center" Width="7.875" Stroke="#FF818181">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Tag" Value="Help">
                            <Setter Property="Data" TargetName="textBlock" Value="M1.93359375,8.03080749511719L2.794921875,8.03080749511719 2.794921875,8.89213562011719 1.93359375,8.89213562011719z M2.373046875,2.63432312011719C2.97070288658142,2.63432359695435 3.44921851158142,2.79838609695435 3.80859375,3.12651062011719 4.16796875,3.45463562011719 4.34765625,3.85111999511719 4.34765625,4.31596374511719 4.34765625,4.58549499511719 4.2841796875,4.83354187011719 4.1572265625,5.06010437011719 4.0302734375,5.28666687011719 3.78515601158142,5.56205749511719 3.421875,5.88627624511719 3.17578101158142,6.10111999511719 3.01464819908142,6.26029968261719 2.9384765625,6.36381530761719 2.8623046875,6.46733093261719 2.8056640625,6.58647155761719 2.7685546875,6.72123718261719 2.7314453125,6.85600280761719 2.7109375,7.07572937011719 2.70703125,7.38041687011719L1.98046875,7.38041687011719C1.97656238079071,7.27885437011719 1.97460925579071,7.20268249511719 1.974609375,7.15190124511719 1.97460925579071,6.85502624511719 2.017578125,6.59916687011719 2.103515625,6.38432312011719 2.162109375,6.22026062011719 2.26171875,6.05619812011719 2.40234375,5.89213562011719 2.5,5.77104187011719 2.6796875,5.59526062011719 2.94140625,5.36479187011719 3.20312476158142,5.13432312011719 3.37304663658142,4.95072937011719 3.451171875,4.81401062011719 3.52929663658142,4.67729187011719 3.56835913658142,4.52690124511719 3.568359375,4.36283874511719 3.56835913658142,4.06986999511719 3.45410132408142,3.81205749511719 3.2255859375,3.58940124511719 2.9970703125,3.36674499511719 2.716796875,3.25541687011719 2.384765625,3.25541687011719 2.060546875,3.25541687011719 1.79101550579071,3.35697937011719 1.576171875,3.56010437011719 1.361328125,3.76322937011719 1.220703125,4.07768249511719 1.154296875,4.50346374511719L0.375,4.40971374511719C0.445312470197678,3.83940124511719 0.6533203125,3.40092468261719 0.999023497104645,3.09428405761719 1.34472644329071,2.78764390945435 1.80273425579071,2.63432359695435 2.373046875,2.63432312011719z"/>
                            <Setter Property="Width" TargetName="textBlock" Value="8"/>
                            <Setter Property="Height" TargetName="textBlock" Value="10"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="LightShade">
                            <Setter Property="Fill" TargetName="textBlock" Value="#FFFFFFFF"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True"/>
                        <Trigger Property="IsDefaulted" Value="True"/>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Tag" Value="{x:Null}"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="border" Value="Transparent"/>
                            <Setter Property="Fill" TargetName="textBlock" Value="{DynamicResource RedBrush}"/>
                            <Setter Property="Stroke" TargetName="textBlock" Value="{DynamicResource RedBrush}"/>
                        </MultiTrigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" TargetName="border" Value="Transparent"/>
                            <Setter Property="Fill" TargetName="textBlock" Value="{DynamicResource RedBrush}"/>
                            <Setter Property="Stroke" TargetName="textBlock" Value="{DynamicResource RedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="RenderTransform" TargetName="grid">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform Y="1"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False"/>
                        <Trigger Property="Tag" Value="Close"/>
                        <Trigger Property="Tag" Value="Minimize">
                            <Setter Property="Data" TargetName="textBlock" Value="M0,13.99375L4.9804688,13.99375 4.9804688,14.691015 0,14.691015z"/>
                            <Setter Property="Height" TargetName="textBlock" Value="2"/>
                            <Setter Property="VerticalAlignment" TargetName="textBlock" Value="Bottom"/>
                            <Setter Property="Margin" TargetName="textBlock" Value="0,0,0,5"/>
                            <Setter Property="Width" TargetName="textBlock" Value="8"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="RedBrush" Color="#FFF16969"/>

    <Style x:Key="ButtonFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#F3F3F3" Offset="0"/>
        <GradientStop Color="#EBEBEB" Offset="0.5"/>
        <GradientStop Color="#DDDDDD" Offset="0.5"/>
        <GradientStop Color="#CDCDCD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
    <StreamGeometry x:Key="CancelGeometry">M0.37499994,4.5484371L1.5820313,4.5484371 3.2988281,7.5015621C3.4121091,7.6968746,3.5117185,7.8921871,3.5976563,8.0874996L3.6210938,8.0874996C3.7460935,7.8296871,3.8554685,7.6265621,3.9492188,7.4781246L5.7363281,4.5484371 6.8671875,4.5484371 4.2246094,8.7144527 6.9023438,12.950781 5.7011719,12.950781 3.7675781,9.733984C3.7089841,9.6363277,3.644531,9.4976559,3.5742188,9.3179684L3.5507813,9.3179684C3.5117185,9.4078121,3.4453123,9.546484,3.3515625,9.733984L1.359375,12.950781 0.15234371,12.950781 2.9648438,8.7261715z</StreamGeometry>
    <PathGeometry x:Key="SaveGeometry" Figures="M3.6152344,7.8916931 L3.6152344,10.499115 L5.0625,10.499115 L5.0625,7.8916931 z M2.7480469,2.4014587 L2.7480469,5.8702087 C2.7480469,5.9639587 2.7724915,6.0352478 2.8213806,6.0840759 C2.8702698,6.1329041 2.9416504,6.1573181 3.0355225,6.1573181 L7.6695557,6.1573181 C7.8612056,6.1573181 7.9570308,6.0598145 7.9570313,5.8648071 L7.9570313,2.4014587 z M1.59375,2.4014587 C1.3984375,2.4014587 1.3007813,2.4971313 1.3007814,2.6884766 L1.3007814,9.5125427 L2.2851563,10.499115 L3.328125,10.499115 L3.328125,7.8975525 C3.3281248,7.70224 3.4238279,7.6045837 3.6152344,7.6045837 L7.0839844,7.6045837 C7.2792964,7.6045837 7.3769526,7.70224 7.3769531,7.8975525 L7.3769531,10.499115 L9.1113281,10.499115 C9.2089844,10.499115 9.28125,10.474701 9.328125,10.425873 C9.375,10.377045 9.3984375,10.305756 9.3984375,10.212006 L9.3984375,2.6885681 C9.3984375,2.4971619 9.3027344,2.4014587 9.1113281,2.4014587 L8.2441406,2.4014587 L8.2441406,5.8651733 C8.2441406,6.0250854 8.1875,6.1616058 8.0742188,6.2747345 C7.960937,6.3878632 7.8242183,6.4444275 7.6640625,6.4444275 L3.0351563,6.4444275 C2.875,6.4444275 2.7392578,6.3878632 2.6279297,6.2747345 C2.5166016,6.1616058 2.4609375,6.0250854 2.4609375,5.8651733 L2.4609375,2.4014587 z M1.59375,2.1143494 L9.1113281,2.1143494 C9.2714844,2.1143494 9.4072266,2.1700134 9.5185547,2.2813416 C9.6298828,2.3926697 9.6855469,2.5284119 9.6855469,2.6885681 L9.6855469,10.206146 C9.6855469,10.366302 9.6298828,10.503021 9.5185547,10.616302 C9.4072266,10.729584 9.2714844,10.786224 9.1113281,10.786224 L2.1679688,10.786224 L1.0136719,9.6300049 L1.0136719,2.688385 C1.0136719,2.5282898 1.0703125,2.3925934 1.1835938,2.2812958 C1.296875,2.1699982 1.4335938,2.1143494 1.59375,2.1143494 z"/>
    <Style x:Key="CommonButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="#FFF7F7F7"/>
        <Setter Property="BorderBrush" Value="#FFBBBBBB"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FF666666"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Margin" Value="10,0,0,0"/>
        <Setter Property="MinHeight" Value="20"/>
        <Setter Property="MinWidth" Value="75"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" ClipToBounds="True" >
                        <Grid>
                            <Rectangle SnapsToDevicePixels="True" x:Name="rectangle" RadiusX="4" RadiusY="4" Opacity="0.08" Grid.ColumnSpan="2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#00000000" Offset="0"/>
                                        <GradientStop Color="Black" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Grid  x:Name="stackPanel" VerticalAlignment="Center" Margin="5,4" Grid.Column="1" HorizontalAlignment="Stretch" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.RenderTransform>
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                                <ContentPresenter x:Name="content" Grid.Column="1" Margin="10,0" SnapsToDevicePixels="True" VerticalAlignment="Center" />
                                <Path  Visibility="Collapsed" x:Name="path" Data="M5.5053711,3.9831572 L6.6279297,3.9831572 L8.878418,6.2336454 L6.6279297,8.4841337 L5.5053711,8.4841337 L7.3583984,6.6311064 L0.92919922,6.6311064 L0.92919922,5.8361845 L7.3583984,5.8361845 z" Fill="{TemplateBinding Foreground}" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Width="11" Height="7" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>

                            </Grid>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Tag" Value="{x:Null}">
                            <Setter Property="HorizontalAlignment" Value="Center" TargetName="content"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Save">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Width" Value="12" TargetName="path"/>
                            <Setter Property="Height" Value="12" TargetName="path"/>
                            <Setter Property="Data" Value="{DynamicResource SaveGeometry}" TargetName="path"/>
                        </Trigger>

                        <Trigger Property="Tag" Value="Cancel">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Width" Value="8" TargetName="path"/>
                            <Setter Property="Height" Value="9" TargetName="path"/>
                            <Setter Property="Data" Value="{DynamicResource CancelGeometry}" TargetName="path"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Back">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="RenderTransform" TargetName="path">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="180"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="Tag" Value="Next">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Grid.Column" TargetName="path" Value="2"/>

                        </Trigger>
                        <Trigger Property="Tag" Value="Post">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="RenderTransform" TargetName="path">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="270"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>

                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.7"/>
                            <Setter Property="BorderBrush" Value="Transparent"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.3"/>
                            <Setter Property="Fill" TargetName="rectangle" Value="#FF000000"/>
                            <Setter Property="LayoutTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="RenderTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform Y="1"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="ToggleButton.IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" Value="#FFF7f7f7"/>
                            <Setter Property="Foreground" Value="#FFb6b6b6"/>
                            <Setter Property="BorderBrush" Value="#FFCCCCCC"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="Visibility" TargetName="rectangle" Value="Collapsed"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ImageButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="{DynamicResource GreenButtonBrush}"/>
        <Setter Property="BorderBrush" Value="#FFBBBBBB"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Margin" Value="10,0,0,0"/>
        <Setter Property="MinHeight" Value="20"/>
        <Setter Property="MinWidth" Value="75"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" ClipToBounds="True" >
                        <Grid>

                            <Rectangle SnapsToDevicePixels="True" x:Name="rectangle" RadiusX="4" RadiusY="4" Opacity="0.08" Grid.ColumnSpan="2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#00000000" Offset="0"/>
                                        <GradientStop Color="Black" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Grid  x:Name="stackPanel" VerticalAlignment="Center" Margin="5,4" Grid.Column="1" HorizontalAlignment="Stretch" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.RenderTransform>
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                                <Image x:Name="Image" SnapsToDevicePixels="True" Width="20" Height="18" Source="{Binding Tag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}"/>
                                <ContentPresenter x:Name="content" Grid.Column="1" Margin="10,0" SnapsToDevicePixels="True" VerticalAlignment="Center" />

                            </Grid>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.7"/>
                            <Setter Property="BorderBrush" Value="Transparent"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.3"/>
                            <Setter Property="Fill" TargetName="rectangle" Value="#FF000000"/>
                            <Setter Property="LayoutTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="RenderTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform Y="1"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="ToggleButton.IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" Value="#FFF9F9F9"/>
                            <Setter Property="Foreground" Value="#FFFFFFFF"/>
                            <Setter Property="BorderBrush" Value="#FFEFEFEF"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="Foreground" Value="#FFCCCCCC"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
        <GradientStop Color="#ABADB3" Offset="0.05"/>
        <GradientStop Color="#E2E3EA" Offset="0.07"/>
        <GradientStop Color="#E3E9EF" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush Color="#FF777777" x:Key="LabelForeground"/>
    <SolidColorBrush x:Key="CommonBorderBrush" Color="#FFD4D4D4"/>
    <Style x:Key="TextBoxStyle" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
        <Setter Property="Foreground" Value="#FF6a6a6a"/>
        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
        <Setter Property="BorderBrush" Value="{StaticResource CommonBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="FontSize" Value="{DynamicResource LabelFontSize}"/>
        <Setter Property="Template">

            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <Border x:Name="BD" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFE5E5E5" Offset="0"/>
                                <GradientStop Color="White" Offset="0.05"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <Grid>
                            <Border x:Name="FocusBorder" BorderBrush="#FFEBEBEB" BorderThickness="0,2,2,0" Visibility="Collapsed"/>
                            <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsReadOnly" Value="True">
                            <Setter Property="Background" Value="#FFF9F9F9" TargetName="BD"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Opacity" Value="1" TargetName="PART_ContentHost"/>
                            <Setter Property="Foreground" Value="#FF000000"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter Property="Opacity" Value="1" TargetName="PART_ContentHost"/>
                            <Setter Property="Foreground" Value="#FF000000"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="FocusBorder"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">

                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PasswordBoxStyle" BasedOn="{x:Null}" TargetType="{x:Type PasswordBox}">
        <Setter Property="Foreground" Value="#FF6a6a6a"/>
        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
        <Setter Property="BorderBrush" Value="{StaticResource CommonBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="FontSize" Value="{DynamicResource LabelFontSize}"/>
        <Setter Property="Template">

            <Setter.Value>
                <ControlTemplate TargetType="{x:Type PasswordBox}">
                    <Border BorderBrush="{DynamicResource CommonBorderBrush}" BorderThickness="1" SnapsToDevicePixels="True">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFE5E5E5" Offset="0"/>
                                <GradientStop Color="White" Offset="0.05"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <system:Double x:Key="LabelFontSize">13</system:Double>
    <Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>
    <Style x:Key="MetroComboxItemStyle" TargetType="{x:Type ComboBoxItem}">
        <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        <Setter Property="Padding" Value="3,0,3,0"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{DynamicResource LabelForeground}"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ComboBoxItem}">
                    <Border SnapsToDevicePixels="true" Background="#00000000" BorderThickness="1">
                        <Grid>
                            <Rectangle x:Name="Bd" Stroke="{DynamicResource CommonBorderBrush}" StrokeThickness="1" Visibility="Collapsed" />
                            <Rectangle x:Name="rectangle" Stroke="White" StrokeThickness="1" Visibility="Collapsed"/>
                            <Rectangle x:Name="selectedRect" Visibility="Collapsed" Fill="{DynamicResource CommonBorderBrush}"/>
                            <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="3"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsHighlighted" Value="true">
                            <Setter Property="Visibility" TargetName="rectangle" Value="Visible"/>
                            <Setter Property="Fill" TargetName="rectangle" Value="{DynamicResource CommonBorderBrush}"/>
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.04"/>
                            <Setter Property="Visibility" TargetName="Bd" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="Selector.IsSelected" Value="True">
                            <Setter Property="Visibility" TargetName="selectedRect" Value="Visible"/>
                            <Setter Property="Foreground" Value="White"/>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Opacity" Value="0.3"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MetroToggleButton" TargetType="{x:Type ToggleButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="ClickMode" Value="Press"/>
        <Setter Property="BorderBrush" Value="{DynamicResource CommonBorderBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Rectangle Grid.ColumnSpan="2" x:Name="HoverRectangle" Visibility="Collapsed" >
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFE3F4FF" Offset="1"/>
                                        <GradientStop Color="White"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="#FF535556" HorizontalAlignment="Center" Margin="6,1,6,0" VerticalAlignment="Center" Grid.Column="1" Opacity="0.8"/>

                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Opacity" TargetName="Arrow" Value="1"/>
                            <Setter Property="Visibility" TargetName="HoverRectangle" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Fill" TargetName="Arrow" Value="#FFCCCCCC"/>
                            <Setter Property="BorderBrush" TargetName="border" Value="#FFCCCCCC"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MetroCombobox" TargetType="{x:Type ComboBox}">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="Padding" Value="4,3"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
        <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="ItemContainerStyle" Value="{DynamicResource MetroComboxItemStyle}"/>
        <Setter Property="Foreground" Value="{DynamicResource LabelForeground}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="BorderBrush" Value="{DynamicResource CommonBorderBrush}"/>
        <!--<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}"/>-->
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                    <GradientStop Color="#FFF9F9F9"/>
                    <GradientStop Offset="1" Color="#FFF6F6F6"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Width" Value="300"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ComboBox}">
                    <Grid x:Name="MainGrid" SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
                        </Grid.ColumnDefinitions>
                        <Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Margin="1" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom" VerticalOffset="0">
                            <Microsoft_Windows_Themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{Binding ActualWidth, ElementName=MainGrid}">
                                <Border x:Name="DropDownBorder" BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource CommonBorderBrush}">
                                    <ScrollViewer x:Name="DropDownScrollViewer">
                                        <Grid RenderOptions.ClearTypeHint="Enabled">
                                            <Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
                                                <Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=DropDownBorder}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
                                            </Canvas>
                                            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="InfoTB" Visibility="Collapsed" Text="No Items Found"/>
                                            <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                        </Grid>
                                    </ScrollViewer>
                                </Border>
                            </Microsoft_Windows_Themes:SystemDropShadowChrome>
                        </Popup>
                        <ToggleButton Content="{TemplateBinding SelectedItem}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource MetroToggleButton}"/>
                        <ContentPresenter ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Content="{TemplateBinding SelectionBoxItem}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>

                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
                            <Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
                            <Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
                        </Trigger>

                        <Trigger Property="HasItems" Value="false">
                            <Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="InfoTB"/>
                        </Trigger>
                        <Trigger Property="HasItems" Value="True">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="InfoTB"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                            <Setter Property="Background" Value="#FFF4F4F4"/>
                        </Trigger>
                        <Trigger Property="IsGrouping" Value="true">
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                        </Trigger>
                        <Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
                            <Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
                            <Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>
    <SolidColorBrush x:Key="TabControlNormalBorderBrush" Color="#8C8E94"/>
    <SolidColorBrush x:Key="GrayBrush" Color="#FF7A7A7A"/>
    <SolidColorBrush x:Key="SelectedBrush" Color="#FF23ACF3"/>
    <PathGeometry x:Key="DownArrowPath">M0.8671875,2.4619789 L10.880859,2.4619789 L5.8710938,11.133854 z</PathGeometry>
    <PathGeometry x:Key="UpArrowPath">M5.8710938,2.4619789 L10.880859,11.133854 L0.8671875,11.133854 z</PathGeometry>
    <PathGeometry x:Key="LeftArrowPath">M5.3496094,2.4619789 L5.3496094,11.133854 L1.0136719,6.7979164 z</PathGeometry>
    <PathGeometry x:Key="RightArrowPath">M1.0136719,2.4619789 L5.3496094,6.7979164 L1.0136719,11.133854 z</PathGeometry>
    <Style x:Key="MetroRoundedRepeatButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FFB2B2B2"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Width" Value="18" />
        <Setter Property="Height" Value="18"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="OnMouseEnter"/>
                        <Storyboard x:Key="OnMouseLeave"/>
                    </ControlTemplate.Resources>
                    <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
                        <Grid.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Grid.RenderTransform>
                        <Ellipse x:Name="ellipse" Fill="#00FDFDFD" StrokeThickness="1" Stroke="{TemplateBinding Foreground}"/>
                        <Ellipse x:Name="PressedRectangle" Fill="{DynamicResource SelectedBrush}" StrokeThickness="2" Visibility="Collapsed"/>
                        <Path x:Name="path"  RenderTransformOrigin="0.5,0.5" Data="M0.8671875,2.4619789 L10.880859,2.4619789 L5.8710938,11.133854 z" Stretch="Fill"  Fill="{TemplateBinding Foreground}" Margin="5,7,5,6">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Foreground" Value="{DynamicResource SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Light">
                            <Setter Property="Foreground" Value="#FFEDEDED"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Visibility" TargetName="PressedRectangle" Value="Visible"/>
                            <Setter Property="RenderTransform" TargetName="grid">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform Y="1"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground" Value="White"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="ToggleButton.IsChecked" Value="true"/>
                        <Trigger Property="Content" Value="Up">
                            <Setter Property="Data" TargetName="path" Value="{StaticResource UpArrowPath}"/>
                            <Setter Property="Margin" TargetName="path" Value="5,6,5,7"/>
                        </Trigger>
                        <Trigger Property="Content" Value="Left">
                            <Setter Property="Data" TargetName="path" Value="{StaticResource LeftArrowPath}"/>
                            <Setter Property="Margin" TargetName="path" Value="6,5,7,5"/>
                        </Trigger>
                        <Trigger Property="Content" Value="Right">
                            <Setter Property="Data" TargetName="path" Value="{StaticResource RightArrowPath}"/>
                            <Setter Property="Margin" TargetName="path" Value="7,5,6,5"/>
                        </Trigger>


                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="TabScrollviewer" TargetType="{x:Type ScrollViewer}">
        <Grid x:Name="Grid" Background="{TemplateBinding Background}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="0" Margin="{TemplateBinding Padding}" Grid.Row="0"/>

            <ScrollBar x:Name="PART_HorizontalScrollBar" AutomationProperties.AutomationId="HorizontalScrollBar" Cursor="Arrow" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Orientation="Horizontal"  Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Height="Auto" Style="{DynamicResource TabScroll}" Background="{x:Null}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="TabScroll" TargetType="{x:Type ScrollBar}">

        <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
        <Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>

        <Style.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">
                <Setter Property="Width" Value="Auto"/>
                <Setter Property="MinWidth" Value="0"/>
                <Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
                <Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>

                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ScrollBar}">
                            <Grid x:Name="Bg" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                                <StackPanel Orientation="Horizontal">
                                    <RepeatButton Command="{x:Static ScrollBar.LineLeftCommand}" IsEnabled="{TemplateBinding IsMouseOver}"  Content="Left" Style="{DynamicResource MetroRoundedRepeatButton}" Margin="2,0" />
                                    <RepeatButton Command="{x:Static ScrollBar.LineRightCommand}" IsEnabled="{TemplateBinding IsMouseOver}"  Content="Right" Style="{DynamicResource MetroRoundedRepeatButton}" Margin="2,0" />
                                </StackPanel>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="WizardTabControl" TargetType="{x:Type TabControl}">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Padding" Value="4,4,4,4"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Name="ColumnDefinition0"/>
                            <ColumnDefinition x:Name="ColumnDefinition1" Width="0"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition x:Name="RowDefinition0" Height="Auto"/>
                            <RowDefinition x:Name="RowDefinition1" Height="*"/>
                        </Grid.RowDefinitions>
                        <ScrollViewer Grid.Column="0" Margin="2,2,2,0" Grid.Row="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled" Template="{DynamicResource TabScrollviewer}">
                            <TabPanel SnapsToDevicePixels="True" x:Name="HeaderPanel" IsItemsHost="true" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1" Height="Auto" Width="Auto"/>
                        </ScrollViewer>
                        <Border BorderBrush="{TemplateBinding BorderBrush}" x:Name="ContentPanel" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local" Padding="10,15,10,0">
                            <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Tag" Value="ErrorTab">
                            <Setter Property="BorderThickness" Value="0,2,0,0"/>
                            <Setter Property="BorderBrush" Value="{DynamicResource WizardCompletedBGBrush}"/>
                            <Setter Property="Padding" Value="0" TargetName="ContentPanel"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TabItemFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WizardTabItemFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="15,3,65,1" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WizardLastTabItemFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="15,3,5,1" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="TabItemHotBackground" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#EAF6FD" Offset="0.15"/>
        <GradientStop Color="#D9F0FC" Offset=".5"/>
        <GradientStop Color="#BEE6FD" Offset=".5"/>
        <GradientStop Color="#A7D9F5" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="TabItemSelectedBackground" Color="#F9F9F9"/>
    <SolidColorBrush x:Key="TabItemHotBorderBrush" Color="#3C7FB1"/>
    <SolidColorBrush x:Key="TabItemDisabledBackground" Color="#F4F4F4"/>
    <SolidColorBrush x:Key="TabItemDisabledBorderBrush" Color="#FFC9C7BA"/>
    <SolidColorBrush x:Key="WizardCompletedBGBrush" Color="#FFB5D758"/>
    <SolidColorBrush x:Key="WizardSelectedBrush" Color="#FF888888"/>
    <SolidColorBrush x:Key="WizardDisabledBrush" Color="#FFF7F7F7"/>
    <PathGeometry x:Key="WizardDisabledPath" Figures="M0,0 L10,0 L10,10 L0,10 z"/>
    <StreamGeometry x:Key="WizardCompletePath">M22,9.5929165L22,15.592916 13,24.592916 8,19.592916 8,13.592916 13,18.577291z</StreamGeometry>
    <StreamGeometry x:Key="WizardSelectedPath">M6.3632813,4.9239578L15.035156,4.9239578 15.035156,13.595833 19.371094,13.595833 10.699219,22.267708 2.0273438,13.595833 6.3632813,13.595833z</StreamGeometry>
    <Style x:Key="WizardTabItemStyle" TargetType="{x:Type TabItem}">
        <Setter Property="FocusVisualStyle" Value="{DynamicResource WizardTabItemFocusVisual}"/>
        <Setter Property="Background" Value="{DynamicResource WizardCompletedBGBrush}"/>
        <Setter Property="Padding" Value="10,0,10,3"/>
        <Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabItem}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Border SnapsToDevicePixels="True" MinWidth="120" x:Name="Bd" CornerRadius="4" Background="{TemplateBinding Background}" Margin="10,0,0,0">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="28"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Rectangle x:Name="rectangle" RadiusX="4" RadiusY="4" Opacity="0.5" Grid.ColumnSpan="2" />
                                <ContentPresenter Margin="10,0,10,5" TextBlock.FontSize="24" TextBlock.FontWeight="Light" TextBlock.Foreground="White" x:Name="Content" ContentSource="Header" HorizontalAlignment="Left" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center" Grid.Column="1"/>

                                <Path x:Name="path" Data="{DynamicResource WizardCompletePath}" Fill="White" HorizontalAlignment="Center" Height="15" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center" Width="14" Grid.Column="0" Opacity="0.5" Visibility="Visible">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                        </Border>
                        <Path x:Name="Arrow" Data="M10,2.7199999 L16,2.7199999 16,8.72 10,8.72 z M0,2.7199999 L6,2.7199999 6,8.72 0,8.72 z M27.829723,0 L32.737,5.7815001 27.829723,11.563 27.829723,8.67225 21,8.67225 21,2.8907498 27.829723,2.8907498 z" Fill="#FFE5E5E5" Height="12" Margin="15,0" Stretch="Fill" VerticalAlignment="Center" Width="33" HorizontalAlignment="Left" Grid.Column="1" IsHitTestVisible="False"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Cursor" Value="Hand" TargetName="Bd"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True" SourceName="Bd">
                            <Setter Property="Fill" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter Property="Panel.ZIndex" Value="1"/>
                            <Setter Property="Foreground" Value="#FFFFFFFF"/>
                            <Setter Property="Background" Value="{DynamicResource WizardSelectedBrush}"/>
                            <Setter Property="Data" TargetName="path" Value="{DynamicResource WizardSelectedPath}"/>
                            <Setter Property="Width" TargetName="path" Value="18"/>
                            <Setter Property="Width" TargetName="path" Value="18"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="false"/>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemHotBorderBrush}"/>
                        </MultiTrigger>
                        <Trigger Property="Tag" Value="LastItem">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="Arrow"/>
                            <Setter Property="FocusVisualStyle" Value="{DynamicResource WizardLastTabItemFocusVisual}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="TextBlock.Foreground" TargetName="Content" Value="#FF444444"/>
                            <Setter Property="Background" Value="#FFEFEFEF"/>
                            <Setter Property="Data" TargetName="path" Value="{DynamicResource WizardDisabledPath}"/>
                            <Setter Property="Fill" TargetName="path" Value="#66444444"/>
                            <Setter Property="Width" TargetName="path" Value="10"/>
                            <Setter Property="Height" TargetName="path" Value="10"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ErrorTabItemStyle" TargetType="{x:Type TabItem}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}"/>
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Background" Value="#FFD2d2d2"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HeaderTemplate" Value="{DynamicResource ErrorTabItemTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabItem}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Border SnapsToDevicePixels="True" MinWidth="90" MaxWidth="130" x:Name="Bd" Margin="5,0,0,0"  CornerRadius="2,2,0,0" Background="{TemplateBinding Background}">
                            <Grid>
                                <Border SnapsToDevicePixels="True" x:Name="rectangle" CornerRadius="2,2,0,0" Opacity="0.5" Grid.ColumnSpan="2"/>
                                <ContentPresenter Margin="{TemplateBinding Padding}" TextBlock.FontSize="12" TextBlock.FontWeight="SemiBold" x:Name="Content" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
                            </Grid>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Cursor" Value="Hand" TargetName="Bd"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True" SourceName="Bd">
                            <Setter Property="Background" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>

                            </Setter>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter Property="Panel.ZIndex" Value="1"/>
                            <Setter Property="Foreground" Value="#FFFFFFFF"/>
                            <Setter Property="Background" Value="{DynamicResource WizardCompletedBGBrush}"/>

                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="false"/>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemHotBorderBrush}"/>
                        </MultiTrigger>
                        <Trigger Property="Tag" Value="LastItem"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#FF444444"/>
                            <Setter Property="Background" Value="#FFF9F9F9"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ErrorTabListboxItemStyle" TargetType="{x:Type ListBoxItem}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}"/>
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Background" Value="#FFD2d2d2"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="ContentTemplate" Value="{DynamicResource ErrorTabItemTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Border SnapsToDevicePixels="True" MinWidth="90" MaxWidth="130" x:Name="Bd" Margin="5,0,0,0"  CornerRadius="2,2,0,0" Background="{TemplateBinding Background}">
                            <Grid>
                                <Border SnapsToDevicePixels="True" x:Name="rectangle" CornerRadius="2,2,0,0" Opacity="0.5" Grid.ColumnSpan="2"/>
                                <ContentPresenter Margin="{TemplateBinding Padding}" TextBlock.FontSize="12" TextBlock.FontWeight="SemiBold" x:Name="Content"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
                            </Grid>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Cursor" Value="Hand" TargetName="Bd"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True" SourceName="Bd">
                            <Setter Property="Background" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>

                            </Setter>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter Property="Panel.ZIndex" Value="1"/>
                            <Setter Property="Foreground" Value="#FFFFFFFF"/>
                            <Setter Property="Background" Value="{DynamicResource WizardCompletedBGBrush}"/>

                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="false"/>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemHotBorderBrush}"/>
                        </MultiTrigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#FF444444"/>
                            <Setter Property="Background" Value="#FFF9F9F9"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--SCROLLBAR TEMPLATES-->
    <ControlTemplate x:Key="ScrollViewerControlTemplate" TargetType="{x:Type ScrollViewer}">
        <Grid x:Name="Grid" Background="Transparent">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Rectangle Opacity="0" x:Name="Corner" Grid.Column="1" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Grid.Row="1"/>
            <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="0" Margin="{TemplateBinding Padding}" Grid.Row="0"/>
            <ScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar" Cursor="Arrow" Grid.Column="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Grid.Row="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Style="{DynamicResource ScrollBarStyle}" Width="12"/>
            <ScrollBar x:Name="PART_HorizontalScrollBar" AutomationProperties.AutomationId="HorizontalScrollBar" Cursor="Arrow" Grid.Column="0" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Orientation="Horizontal" Grid.Row="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Style="{DynamicResource ScrollBarStyle}"/>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="ScrollBarDisabledBackground" Color="#F4F4F4"/>
    <SolidColorBrush x:Key="ScrollBarGrayBrush" Color="#FF8B8B8B"/>
    <SolidColorBrush x:Key="ScrollbarMousehoverBrush" Color="#FF494949"/>
    <Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid>
                        <TextBlock x:Name="path" TextWrapping="Wrap" Text="{TemplateBinding Content}"  VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Webdings" Foreground="{DynamicResource ScrollBarGrayBrush}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Foreground" TargetName="path" Value="{DynamicResource ScrollbarMousehoverBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Rectangle x:Name="rectangle" Fill="{DynamicResource ScrollBarGrayBrush}"  Stroke="{x:Null}" Width="4" Margin="0,0,1,0"/>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="rectangle" Value="{DynamicResource ScrollbarMousehoverBrush}"/>
                            <Setter Property="Width" TargetName="rectangle" Value="6"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Horizontal">
                            <Setter Property="Width" TargetName="rectangle" Value="Auto"/>
                            <Setter Property="Height" TargetName="rectangle" Value="4"/>
                            <Setter Property="Margin" TargetName="rectangle" Value="0,0,0,1"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Tag" Value="Horizontal"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Height" TargetName="rectangle" Value="6"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Tag" Value="{x:Null}"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Width" TargetName="rectangle" Value="6"/>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ScrollBarStyle" TargetType="{x:Type ScrollBar}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
        <Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ScrollBar}">
                    <Grid x:Name="Bg" Background="Transparent" SnapsToDevicePixels="true">
                        <Grid.RowDefinitions>
                            <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
                            <RowDefinition Height="0.00001*"/>
                            <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
                        </Grid.RowDefinitions>
                        <RepeatButton Command="{x:Static ScrollBar.LineUpCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}"  Content="5" FontSize="12"/>
                        <Track x:Name="PART_Track" IsDirectionReversed="true" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="1">
                            <Track.DecreaseRepeatButton>
                                <RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource VerticalScrollBarPageButton}"/>
                            </Track.DecreaseRepeatButton>
                            <Track.IncreaseRepeatButton>
                                <RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource VerticalScrollBarPageButton}"/>
                            </Track.IncreaseRepeatButton>
                            <Track.Thumb>
                                <Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="VerticalGripper"/>
                            </Track.Thumb>
                        </Track>
                        <RepeatButton Command="{x:Static ScrollBar.LineDownCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="2" Style="{StaticResource ScrollBarButton}"  Content="6" FontSize="12"/>
                    </Grid>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">
                <Setter Property="Width" Value="Auto"/>
                <Setter Property="MinWidth" Value="0"/>
                <Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
                <Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ScrollBar}">
                            <Grid x:Name="Bg" SnapsToDevicePixels="true" Background="Transparent">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
                                    <ColumnDefinition Width="0.00001*"/>
                                    <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
                                </Grid.ColumnDefinitions>
                                <RepeatButton Command="{x:Static ScrollBar.LineLeftCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}"  Content="3" FontSize="12"/>
                                <Track x:Name="PART_Track" Grid.Column="1" IsEnabled="{TemplateBinding IsMouseOver}">
                                    <Track.DecreaseRepeatButton>
                                        <RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource HorizontalScrollBarPageButton}"/>
                                    </Track.DecreaseRepeatButton>
                                    <Track.IncreaseRepeatButton>
                                        <RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource HorizontalScrollBarPageButton}"/>
                                    </Track.IncreaseRepeatButton>
                                    <Track.Thumb>
                                        <Thumb Tag="Horizontal" Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="HorizontalGripper"/>
                                    </Track.Thumb>
                                </Track>
                                <RepeatButton Grid.Column="2" Command="{x:Static ScrollBar.LineRightCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}"  Content="4" FontSize="12"/>
                            </Grid>

                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource ScrollBarStyle}"/>
    <Style  TargetType="{x:Type ScrollViewer}">
        <Setter Property="Template" Value="{DynamicResource ScrollViewerControlTemplate}"/>
    </Style>
    <SolidColorBrush x:Key="ErrorTabSelectedBrush" Color="#FFB5D758"/>
    <SolidColorBrush x:Key="GreenButtonBrush" Color="#FF83bf49"/>
    <Style TargetType="{x:Type Button}" x:Key="GreenButton" BasedOn="{StaticResource CommonButtonStyle}">
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Background" Value="{DynamicResource GreenButtonBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="GrayButton" BasedOn="{StaticResource CommonButtonStyle}">
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Background" Value="#FF8c8c8c"/>
        <Setter Property="BorderThickness" Value="0"/>
    </Style>
    <Style TargetType="{x:Type TextBlock}" x:Key="LabelStyle">
        <Setter Property="FontSize" Value="{DynamicResource LabelFontSize}"/>
        <Setter Property="Foreground" Value="#FF3e3e3e"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Width" Value="140"/>
        <Setter Property="Margin" Value="0,0,10,0"/>
        <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <Style TargetType="{x:Type TextBlock}" x:Key="AutoLabelStyle" BasedOn="{StaticResource LabelStyle}">
        <Setter Property="Width" Value="Auto"/>
        <Setter Property="Margin" Value="0"/>
    </Style>
    <Style TargetType="TextBlock" x:Key="WrappedLabelStyle" BasedOn="{StaticResource LabelStyle}">
        <Setter Property="Width" Value="Auto"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>
    <Style TargetType="TextBlock" x:Key="ErrorLabelStyle" >
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Foreground" Value="{DynamicResource RedBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
        <Setter Property="MaxHeight" Value="50"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Margin" Value="0,5"/>
        <Setter Property="FontStyle" Value="Italic"/>
    </Style>

    <Style x:Key="DescriptionTextStyle" TargetType="TextBlock" BasedOn="{StaticResource LabelStyle}">
        <Setter Property="Foreground" Value="{DynamicResource LabelForeground}"/>
        <Setter Property="Width" Value="Auto"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>
    <Style TargetType="StackPanel" x:Key="StackItemPanel">
        <Setter Property="Orientation" Value="Horizontal"/>
        <Setter Property="Margin" Value="0,10,0,0"/>
    </Style>
    <Thickness x:Key="ControlMargin">10,0</Thickness>
    <Style TargetType="StackPanel" x:Key="ButtonContainer">
        <Setter Property="Orientation" Value="Horizontal"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Margin" Value="10"/>
    </Style>
    <Style x:Key="GroupGridContainer" TargetType="{x:Type GroupBox}">
        <Setter Property="BorderBrush" Value="#D5DFE5"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="27"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Rectangle Fill="{DynamicResource LineImageBrush}" Opacity="0.1"/>
                        <ContentPresenter Margin="20,0,0,0" VerticalAlignment="Center" TextBlock.FontSize="12" TextBlock.Foreground="#FF7b7b7b" TextBlock.FontWeight="SemiBold" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        <ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DataGridRowStyle" TargetType="{x:Type DataGridRow}">
        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="Validation.ErrorTemplate" Value="{x:Null}"/>
        <Setter Property="ValidationErrorTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <TextBlock Foreground="Red" Margin="2,0,0,0" Text="!" VerticalAlignment="Center"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DataGridRow}">
                    <Border x:Name="DGR_Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
                        <SelectiveScrollingGrid>
                            <SelectiveScrollingGrid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </SelectiveScrollingGrid.ColumnDefinitions>
                            <SelectiveScrollingGrid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </SelectiveScrollingGrid.RowDefinitions>
                            <DataGridCellsPresenter Grid.Column="1" ItemsPanel="{TemplateBinding ItemsPanel}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            <DataGridDetailsPresenter Grid.Column="1" Grid.Row="1" SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Visibility="{TemplateBinding DetailsVisibility}"/>

                        </SelectiveScrollingGrid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DataGridCellStyle" TargetType="{x:Type DataGridCell}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="FontSize" Value="13"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FF707070"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DataGridCell}">

                    <Border  SnapsToDevicePixels="True">
                        <Border x:Name="ContentBorder" Margin="4"  >
                            <ContentPresenter x:Name="content" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>

                        </Border>
                    </Border>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="DarkColumnHeaderBrush" Color="#FFaaaaaa"/>
    <Style x:Key="DataGridColumnHeaderStyle" TargetType="{x:Type DataGridColumnHeader}">
        <Setter Property="FontSize" Value="13"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="BorderThickness" Value="0,0,1,0"/>
        <Setter Property="BorderBrush" Value="#FFEFEFEF"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="SortStates">
                                <VisualState x:Name="Unsorted"/>
                                <VisualState x:Name="SortAscending">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SortDescending">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="path">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="180"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Height="30" Fill="#00000000" Opacity="0.2"   x:Name="HoverRectangle"/>
                        <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Background="{DynamicResource DarkColumnHeaderBrush}" >
                            <ContentPresenter Margin="10,0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <Path Visibility="Collapsed" x:Name="path" Data="M5.3496094,2.4619789 L9.6855469,6.7979164 L1.0136719,6.7979164 z" Fill="#FFE7E7E7" HorizontalAlignment="Center" Height="4" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Bottom" Width="8" Margin="3,2" Opacity="0.8">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="CanUserSort" Value="True"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Visibility" Value="Visible" TargetName="HoverRectangle" />
                            <Setter Property="Fill" Value="#FF000000" TargetName="HoverRectangle" />
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="CanUserSort" Value="True"/>
                                <Condition Property="IsPressed" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="RenderTransform" TargetName="Bd">
                                <Setter.Value>
                                    <TranslateTransform Y="1"/>
                                </Setter.Value>
                            </Setter>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type TextBlock}" x:Key="RightAlignedTextStyle">
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    <Style TargetType="{x:Type DataGrid}" x:Key="DataGridStyle">
        <Setter Property="Background" Value="White"/>
        <Setter Property="HorizontalGridLinesBrush" Value="#FFFCFCFC"/>
        <Setter Property="AutoGenerateColumns" Value="False"/>
        <Setter Property="VerticalGridLinesBrush" Value="{x:Null}"/>
        <Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle}"/>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="ColumnHeaderStyle" Value="{StaticResource DataGridColumnHeaderStyle}"/>
        <Setter Property="CellStyle" Value="{StaticResource DataGridCellStyle}"/>
        <Setter Property="CanUserAddRows" Value="False"/>
        <Setter Property="CanUserReorderColumns" Value="False"/>
        <Setter Property="CanUserResizeColumns" Value="False"/>
        <Setter Property="IsReadOnly" Value="True"/>
        <Style.Triggers>
            <Trigger Property="HasItems" Value="False">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type DataGrid}">
                            <ContentControl x:Name="ErrorEmptyTemplateControl" Style="{DynamicResource EmptyErrorTemplate}" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
        <Setter Property="Width" Value="8"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--<Style x:Key="DataGridColumnHeaderStyle" TargetType="{x:Type DataGridColumnHeader}">
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
                    <Grid>
                        <Microsoft_Windows_Themes:DataGridHeaderBorder BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" IsClickable="{TemplateBinding CanUserSort}" IsPressed="{TemplateBinding IsPressed}" IsHovered="{TemplateBinding IsMouseOver}" Padding="{TemplateBinding Padding}" SortDirection="{TemplateBinding SortDirection}" SeparatorBrush="{TemplateBinding SeparatorBrush}" SeparatorVisibility="{TemplateBinding SeparatorVisibility}">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Microsoft_Windows_Themes:DataGridHeaderBorder>
                        <Thumb x:Name="PART_LeftHeaderGripper" HorizontalAlignment="Left" Style="{StaticResource ColumnHeaderGripperStyle}"/>
                        <Thumb x:Name="PART_RightHeaderGripper" HorizontalAlignment="Right" Style="{StaticResource ColumnHeaderGripperStyle}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>-->
    <SolidColorBrush x:Key="GridVerticalLineBrush" Color="#FFEDEDED"/>
    <Style x:Key="SharpShadowControl" TargetType="{x:Type ContentControl}">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ContentControl}">
                    <Grid>
                        <Rectangle Stroke="#CC252525" StrokeThickness="1" RadiusX="0" RadiusY="0" Opacity="0.5"/>
                        <Rectangle Stroke="#99252525" StrokeThickness="1" Margin="-1" RadiusX="0" RadiusY="0" Opacity="0.5"/>
                        <Rectangle Stroke="#66252525" StrokeThickness="1" Margin="-2" RadiusX="0" RadiusY="0" Opacity="0.5"/>
                        <Rectangle Stroke="#33252525" StrokeThickness="1" Margin="-3" RadiusX="0" RadiusY="0" Opacity="0.5"/>
                        <Rectangle Stroke="#19252525" StrokeThickness="1" Margin="-4" RadiusX="0" RadiusY="0" Opacity="0.5"/>
                        <Rectangle Stroke="#05252525" StrokeThickness="1" Margin="-5" RadiusX="0" RadiusY="0" Opacity="0.5"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="WizardControlBorderBrush" Color="#FFE2E2E2"/>

    <Style x:Key="TransparentImageButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border BorderBrush="Black" Margin="2">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="image">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Image x:Name="image" Source="pack://application:,,,/DataUp.Addin;component/Resources/Images/RowSelection.png" Stretch="Fill" Width="16" Height="16" SnapsToDevicePixels="True" Opacity="0.6" RenderTransformOrigin="0.5,0.5">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="ToggleButton.IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="TabListBoxStyle" TargetType="{x:Type ListBox}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
        <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <Border x:Name="Bd" BorderThickness="0,0,0,2" BorderBrush="{DynamicResource WizardCompletedBGBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                        <ScrollViewer Template="{DynamicResource TabScrollviewer}" Focusable="false" Padding="{TemplateBinding Padding}">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </ScrollViewer>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsGrouping" Value="true">
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type TextBlock}" x:Key="LabelErrorStyle">
        <Setter Property="FontSize" Value="{DynamicResource LabelFontSize}"/>
        <Setter Property="Foreground" Value="Red"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="2" />
    </Style>

    <Style TargetType="{x:Type Run}" x:Key="RunLabelErrorStyle">
        <Setter Property="FontSize" Value="{DynamicResource LabelFontSize}"/>
        <Setter Property="Foreground" Value="Red"/>
    </Style>
    

    <Style x:Key="PopupContainerStyle" TargetType="{x:Type GroupBox}">
        <Setter Property="BorderBrush" Value="#FFBFBFBF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <Grid >
                        <ContentControl Opacity="0.8" Content="ContentControl" VerticalAlignment="Stretch" Style="{DynamicResource RoundedShadowControl}"/>
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="4" SnapsToDevicePixels="True">
                            <Border BorderThickness="2" CornerRadius="2" BorderBrush="White" SnapsToDevicePixels="True" >
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFF7F7F7" Offset="1"/>
                                        <GradientStop Color="White" Offset="0"/>
                                        <GradientStop Color="#FFF2F2F2" Offset="0.94"/>
                                        <GradientStop Color="#FFF2F2F2" Offset="0.04"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition MinHeight="30" Height="Auto" x:Name="Row1"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Border x:Name="Header" Grid.Column="0" Padding="10,5,10,5" Grid.Row="0" Grid.RowSpan="1">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                            <StackPanel>
                                                <ContentPresenter x:Name="HeaderContent" TextBlock.FontSize="16" TextBlock.FontWeight="SemiBold" TextBlock.Foreground="#FF777777" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                                <TextBlock x:Name="SubHeader" FontSize="12" Text="{TemplateBinding Tag}" Foreground="#FFa5ce36" Margin="0,1,0,0" />
                                            </StackPanel>
                                            <Button x:Name="CloseButton" Grid.Column="1" Style="{DynamicResource CloseMinimizeButtonStyle}" VerticalAlignment="Top" IsCancel="True"/>
                                        </Grid>
                                    </Border>
                                    <Border Grid.ColumnSpan="1" Grid.Column="0" Grid.Row="1" d:LayoutOverrides="GridBox" Margin="8">
                                        <Grid>
                                            <ContentControl Opacity="0.2" Content="ContentControl" VerticalAlignment="Stretch" Style="{DynamicResource SharpShadowControl}" x:Name="shadowControl" Visibility="Collapsed" />
                                            <Rectangle x:Name="BGRect" Visibility="Collapsed" Grid.Row="1" Stroke="{DynamicResource WizardControlBorderBrush}" SnapsToDevicePixels="True" Fill="White"/>
                                            <Rectangle Visibility="Collapsed" x:Name="BGRect1" SnapsToDevicePixels="True" Grid.Row="1" Opacity="0.06"/>
                                            <ContentPresenter x:Name="content" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </Border>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Tag" Value="Generic">
                            <Setter Property="Visibility" Value="Visible" TargetName="BGRect"/>
                            <Setter Property="Fill" Value="{DynamicResource PatternImageBrush}" TargetName="BGRect1"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="BGRect1"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="shadowControl"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="SubHeader"/>
                            <Setter Property="Margin" Value="10,5" TargetName="content"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="GenericSmall">
                            <Setter Property="Visibility" Value="Visible" TargetName="BGRect"/>
                            <Setter Property="Fill" Value="{DynamicResource PatternImageBrush}" TargetName="BGRect1"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="BGRect1"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="shadowControl"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="SubHeader"/>
                            <Setter Property="TextBlock.FontSize" Value="13" TargetName="HeaderContent"/>
                            <Setter Property="MinHeight" Value="20" TargetName="Row1"/>
                            <Setter Property="Margin" Value="10,5" TargetName="content"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="CloseButton"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Info">
                            <Setter Property="Visibility" Value="Visible" TargetName="BGRect"/>
                            <Setter Property="Fill" Value="{DynamicResource PatternImageBrush}" TargetName="BGRect1"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="BGRect1"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="shadowControl"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="SubHeader"/>
                            <Setter Property="TextBlock.FontSize" Value="13" TargetName="HeaderContent"/>
                            <Setter Property="MinHeight" Value="0" TargetName="Row1"/>
                            <Setter Property="Height" Value="0" TargetName="Row1"/>
                            <Setter Property="Margin" Value="5" TargetName="content"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="CloseButton"/>
                           
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="ContentControl" x:Key="ErrorContentControl">
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <Border x:Name="BD" Margin="5,0" VerticalAlignment="Top"  CornerRadius="10" Background="#FFE54242" Padding="3" Width="14" Height="14">
                            <Path Data="M2.1874454,12.387025 C2.5346589,12.387025 2.8189402,12.487934 3.0402887,12.689752 C3.2616372,12.891569 3.3723116,13.146554 3.3723116,13.454706 C3.3723116,13.767199 3.2627223,14.025438 3.0435438,14.229426 C2.8243651,14.433414 2.5389991,14.535408 2.1874454,14.535408 C1.8402318,14.535408 1.5537806,14.43016 1.3280919,14.219661 C1.1024029,14.009163 0.98955858,13.754178 0.98955858,13.454706 C0.98955858,13.142214 1.103488,12.886145 1.331347,12.686497 C1.5592058,12.486849 1.8445719,12.387025 2.1874454,12.387025 z M1.0937227,5.0499687 L3.255127,5.0499687 L3.0012271,11.4821 L1.334602,11.4821 z" Fill="White" HorizontalAlignment="Center" Height="9" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center" Width="3">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Border>
                        <Popup x:Name="popup" PopupAnimation="Fade" Placement="Bottom" AllowsTransparency="True" PlacementRectangle="{Binding ElementName=BD}">
                            <Grid HorizontalAlignment="Left" x:Name="MainGrid">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>

                                <Border Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Background="#FFAF1313" Padding="5,2,10,2" CornerRadius="2">
                                    <TextBlock TextWrapping="Wrap" Tag="{Binding Content,ElementName=content}" x:Name="content" TextBlock.FontStyle="Italic" Text="{TemplateBinding Content}" VerticalAlignment="Center"  />
                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"  Value="True" >
                            <Setter Property="IsOpen" Value="True" TargetName="popup"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver"  Value="False" >
                            <Setter Property="IsOpen" Value="False" TargetName="popup"/>
                        </Trigger>
                        <Trigger Property="IsEnabled"  Value="False">
                            <Setter Property="Visibility" TargetName="BD" Value="Collapsed"/>
                        </Trigger>


                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <SolidColorBrush x:Key="HighPriorityBrush" Color="#FFFB5C55"/>
    <SolidColorBrush x:Key="MediumPriorityBrush" Color="#FFFDA957"/>
    <SolidColorBrush x:Key="LowPriorityBrush" Color="#FFB4B4B4" />
    <SolidColorBrush x:Key="MouseOverBrush" Color="#FF21BDFF"/>
    <SolidColorBrush x:Key="PressedBrush" Color="#FFE5E5E5"/>

    <StreamGeometry x:Key="ForwardGeomtry">M7.9046823,16.990836L16.916857,10.037494 7.7756037,2.6973272</StreamGeometry>
    <PathGeometry x:Key="RemovePath" Figures="M2.907074,1.9704685 L5.4678955,4.525156 L8.0228577,1.9704685 L9.1640625,3.1141453 L6.609375,5.6686497 L9.1640625,8.2230625 L8.0228577,9.3649998 L5.4622192,6.8044529 L2.9072571,9.3649998 L1.7695313,8.2231541 L4.3242188,5.6686497 L1.7695313,3.1142368 z"/>
    <PathGeometry x:Key="InfoPath" Figures="M0,4 L3,4 3,11 0,11 z M1.5,0 C2.3284271,0 3,0.67157286 3,1.5 3,2.3284271 2.3284271,3 1.5,3 0.67157291,3 4.4703484E-08,2.3284271 0,1.5 4.4703484E-08,0.67157286 0.67157291,0 1.5,0 z"/>

    <Style TargetType="{x:Type Border}" x:Key="PriorityBorder">
        <Setter Property="Margin" Value="5,0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="MinWidth" Value="20"/>
        <Setter Property="Height" Value="15"/>
        <Setter Property="Margin" Value="1,0,0,0"/>
        <Setter Property="Padding" Value="3,0"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style TargetType="{x:Type TextBlock}" x:Key="DataLabelStyle">
        <Setter Property="Foreground" Value="#FF444444"/>
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="FontWeight" Value="Regular"/>
        <Setter Property="FontSize" Value="13"/>
        <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
    </Style>

    <Style TargetType="{x:Type TextBlock}" x:Key="WoorkBookAlertLabel">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
    </Style>
    <Style x:Key="RoundedButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FFA5A5A5"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="Width" Value="16"/>
        <Setter Property="Height" Value="16"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="#FFA5A5A5" Background="{TemplateBinding Background}" CornerRadius="10" >
                            <Path x:Name="path" Data="{DynamicResource ForwardGeomtry}" Fill="{TemplateBinding Foreground}" Stretch="Fill" Stroke="{TemplateBinding Foreground}" Width="6" Height="10" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="2"/>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" Value="{DynamicResource MouseOverBrush}"/>
                            <Setter Property="Foreground" Value="#FFFFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Background" Value="{DynamicResource PressedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsCancel" Value="False"/>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="ToggleButton.IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                            <Setter Property="Opacity" Value="0.4"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Forward">
                            <Setter Property="Fill" TargetName="path" Value="{x:Null}"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Remove">
                            <Setter Property="Data" Value="{DynamicResource RemovePath}" TargetName="path"/>
                            <Setter Property="Stroke" TargetName="path" Value="{x:Null}"/>
                            <Setter Property="StrokeThickness" TargetName="path" Value="0"/>
                            <Setter Property="Width" TargetName="path" Value="8"/>
                            <Setter Property="Height" TargetName="path" Value="8"/>

                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <LinearGradientBrush x:Key="SelectionBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF55ADFF" Offset="0.55"/>
        <GradientStop Color="#FF40A2FD" Offset="0.6"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonBorderBrush" Color="#FF999999"/>

    <Style x:Key="MetroToggleButtonStyle" TargetType="{x:Type ToggleButton}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FF666666"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="MinWidth" Value="60"/>
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid>
                        <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="#FFA5A5A5" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" >
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                        </Border>
                        <Popup AllowsTransparency="True" IsHitTestVisible="False" StaysOpen="False" Placement="Left" HorizontalOffset="15" VerticalOffset="8" IsOpen="{Binding IsChecked, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                            <Border SnapsToDevicePixels="True" BorderThickness="1"  Background="#28272727" CornerRadius="4" Padding="4" MaxWidth="180" VerticalAlignment="Top">
                                <Border SnapsToDevicePixels="True" BorderThickness="1"  Background="White" BorderBrush="#FFD2D2D2">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Rectangle Height="25" Fill="#FFEDEDED"/>
                                        <TextBlock FontSize="12" FontWeight="SemiBold" Text="{Binding Error}" VerticalAlignment="Center" Margin="5,0" Foreground="#FFE76A00"/>
                                        <TextBlock FontSize="12" TextWrapping="Wrap" Text="{TemplateBinding Tag}"  Margin="5" Grid.Row="1" Foreground="#FF444444"/>
                                    </Grid>
                                </Border>
                            </Border>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="IsChecked" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="{DynamicResource MouseOverBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Background" Value="{DynamicResource PressedBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Background" Value="{DynamicResource SelectionBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                            <Setter Property="Opacity" Value="0.4"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="InfoToggleButtonStyle" TargetType="{x:Type ToggleButton}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FFA5A5A5"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="MinWidth" Value="16"/>
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid>
                        <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="#FFA5A5A5" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" CornerRadius="10" >
                            <Path Data="M0,4 L3,4 3,9.1048039 0,9.1048039 z M1.5,0 C2.3284271,0 3,0.67157286 3,1.5 3,2.3284271 2.3284271,3 1.5,3 0.67157291,3 4.4703484E-08,2.3284271 0,1.5 4.4703484E-08,0.67157286 0.67157291,0 1.5,0 z" Fill="{TemplateBinding Foreground}" Height="9" Stretch="Fill" SnapsToDevicePixels="True" Width="2.75" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                        <Popup AllowsTransparency="True" IsHitTestVisible="False" StaysOpen="False" Placement="Left" HorizontalOffset="15" VerticalOffset="8" IsOpen="{Binding IsChecked, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                            <Border SnapsToDevicePixels="True" BorderThickness="1"  Background="#28272727" CornerRadius="4" Padding="4" MaxWidth="180" VerticalAlignment="Top">
                                <Border SnapsToDevicePixels="True" BorderThickness="1"  Background="White" BorderBrush="#FFD2D2D2">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Rectangle Height="25" Fill="#FFEDEDED"/>
                                        <TextBlock FontSize="12" FontWeight="SemiBold" Text="{Binding Error}" VerticalAlignment="Center" Margin="5,0" Foreground="#FFE76A00"/>
                                        <TextBlock FontSize="12" TextWrapping="Wrap" Text="{TemplateBinding Tag}"  Margin="5" Grid.Row="1" Foreground="#FF444444"/>
                                    </Grid>
                                </Border>
                            </Border>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="IsChecked" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="{DynamicResource MouseOverBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Background" Value="{DynamicResource PressedBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Background" Value="{DynamicResource SelectionBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                            <Setter Property="Opacity" Value="0.4"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="TabListBoxStyleOld" TargetType="{x:Type ListBox}">
        <Setter Property="Background" Value="White"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
        <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <VirtualizingStackPanel Orientation="Horizontal"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <Border x:Name="Bd" BorderThickness="0,0,0,2" BorderBrush="#FF23AAF1" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                        <ScrollViewer Template="{DynamicResource TabScrollviewer}" Focusable="false" Padding="{TemplateBinding Padding}">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </ScrollViewer>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsGrouping" Value="true">
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HomepageInfo" TargetType="{x:Type GroupBox}">
        <Setter Property="BorderBrush" Value="#D5DFE5"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{DynamicResource LabelForeground}"/>
        <Setter Property="Padding" Value="10"/>
        <Setter Property="Margin" Value="20,10"/>
        <Setter Property="Height" Value="230"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="27"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Rectangle Fill="#FFf1f1f1" Opacity="0.8"/>
                        <ContentPresenter Margin="10,0,0,0" VerticalAlignment="Center" TextBlock.FontSize="14" TextBlock.Foreground="#FF7b7b7b" TextBlock.FontWeight="SemiBold" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        <ContentPresenter Grid.ColumnSpan="2" TextBlock.FontSize="12" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Thickness x:Key="VerticaltopMargin">0,5,0,0</Thickness>

    <SolidColorBrush x:Key="ListBorder" Color="#828790"/>
    <Style TargetType="ContentControl" x:Key="EmptyErrorTemplate">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="#FF888888"/>
        <Setter Property="Margin" Value="5,20,5,0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border Background="#FFf5f5f5" Padding="15"  >
                        <TextBlock  TextAlignment="Center"  Text="No Items found"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TransparentListBoxStyle" TargetType="{x:Type ListBox}">
        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
        <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <Grid>
                        <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" SnapsToDevicePixels="true" Background="#00000000">
                            <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
                                <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            </ScrollViewer>
                        </Border>
                        <ContentControl x:Name="ErrorEmptyTemplateControl" Style="{DynamicResource EmptyErrorTemplate}" Visibility="Collapsed"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsGrouping" Value="true">
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                        </Trigger>
                        <Trigger Property="HasItems" Value="False">
                            <Setter Property="Visibility" Value="Visible" TargetName="ErrorEmptyTemplateControl"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <!--<Style.Triggers>
            <Trigger Property="HasItems" Value="False">
                <Setter Property="Template" Value="{DynamicResource EmptyItemTemplate}"/>
            </Trigger>
        </Style.Triggers>-->
    </Style>
    <SolidColorBrush x:Key="FixableErrorBrush" Color="#FF6DB121"/>
    <SolidColorBrush x:Key="nonFixableErrorBrush" Color="#FFFF3D3D"/>
    <Style x:Key="RightPaneItemStyle" TargetType="{x:Type ListBoxItem}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        <Setter Property="Padding" Value="2,0,0,0"/>
       
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <Border x:Name="Bd" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true" BorderThickness="0,0,0,1" BorderBrush="#FFDDDDDD">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFFCFCFC" Offset="0"/>
                                <GradientStop Color="#FFE6E6E6" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Background" TargetName="Bd" Value="#FF23AAF1"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="true"/>
                                <Condition Property="Selector.IsSelectionActive" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="#FFBDBDBD"/>
                        </MultiTrigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="LegendStyle" TargetType="{x:Type ContentControl}">
        <Setter Property="Foreground" Value="#FF666666"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Margin" Value="0,0,10,0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ContentControl}">
                    <StackPanel Orientation="Horizontal">
                        <Border Width="10" Height="10" Background="{TemplateBinding Background}" CornerRadius="5"/>
                        <ContentPresenter Margin="5,0,0,0"/>
                    </StackPanel>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="RightPaneListItemStyle" TargetType="{x:Type ListBoxItem}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}"/>
        <Setter Property="Foreground" Value="#FF666666"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Border SnapsToDevicePixels="True" MinWidth="90" MaxWidth="130" x:Name="Bd" Margin="5,0,0,0"  CornerRadius="2,2,0,0" Background="{TemplateBinding Background}">
                            <Grid>
                                <Border SnapsToDevicePixels="True" x:Name="rectangle" CornerRadius="2,2,0,0" Opacity="0.5" Grid.ColumnSpan="2"/>
                                <ContentPresenter Margin="{TemplateBinding Padding}" TextBlock.FontSize="12" TextBlock.FontWeight="SemiBold" x:Name="Content"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
                            </Grid>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Cursor" Value="Hand" TargetName="Bd"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True" SourceName="Bd">
                            <Setter Property="Background" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFf2f2f2" Offset="0"/>
                                        <GradientStop Color="#FFd2d2d2" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>

                            </Setter>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter Property="Foreground" Value="#FFFFFFFF"/>
                            <Setter Property="Background">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF23A9F0" Offset="0"/>
                                        <GradientStop Color="#FF23AAF1" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>

                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="false"/>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemHotBorderBrush}"/>
                        </MultiTrigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#FF444444"/>
                            <Setter Property="Background" Value="#FFF9F9F9"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="CommonToggleButtonStyleSmall" TargetType="{x:Type ToggleButton}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="#FFF7F7F7"/>
        <Setter Property="BorderBrush" Value="#FFBBBBBB"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FF666666"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Margin" Value="10,0,0,0"/>
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid>
                        <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" ClipToBounds="True" >
                            <Grid>
                                <Rectangle SnapsToDevicePixels="True" x:Name="rectangle" RadiusX="4" RadiusY="4" Opacity="0.08" Grid.ColumnSpan="2">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#00000000" Offset="0"/>
                                            <GradientStop Color="Black" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <Grid  x:Name="stackPanel" VerticalAlignment="Center" Margin="3,2" Grid.Column="1" HorizontalAlignment="Stretch" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Grid.RenderTransform>
                                    <Grid.LayoutTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Grid.LayoutTransform>
                                    <ContentPresenter x:Name="content" Grid.Column="1" Margin="3,0" SnapsToDevicePixels="True" VerticalAlignment="Center" />
                                    <Path  Visibility="Collapsed" x:Name="path" Data="M5.5053711,3.9831572 L6.6279297,3.9831572 L8.878418,6.2336454 L6.6279297,8.4841337 L5.5053711,8.4841337 L7.3583984,6.6311064 L0.92919922,6.6311064 L0.92919922,5.8361845 L7.3583984,5.8361845 z" Fill="{TemplateBinding Foreground}" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Width="11" Height="7" HorizontalAlignment="Center" VerticalAlignment="Center">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>

                                </Grid>
                            </Grid>
                        </Border>
                        <Popup AllowsTransparency="True" IsHitTestVisible="False" StaysOpen="False" Placement="Left" HorizontalOffset="15" VerticalOffset="8" IsOpen="{Binding IsChecked, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                            <Grid Margin="5">
                                <ContentControl Content="ContentControl" Style="{DynamicResource RoundedShadowControl}" Opacity="0.4"/>
                                <Border BorderBrush="#FFBEBEBE" SnapsToDevicePixels="True" BorderThickness="1"  CornerRadius="4" Padding="4" MaxWidth="180" VerticalAlignment="Top">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFF3F3F3" Offset="0"/>
                                            <GradientStop Color="#FFEDEDED" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>

                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>

                                        <TextBlock FontSize="12" FontWeight="SemiBold" Text="Suggested remedy" VerticalAlignment="Center" Margin="5,0" Foreground="#FF444444"/>
                                        <TextBlock FontSize="12" TextWrapping="Wrap" Text="{TemplateBinding Tag}"  Margin="5" Grid.Row="1" Foreground="#FF666666"/>
                                    </Grid>

                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Tag" Value="{x:Null}">
                            <Setter Property="HorizontalAlignment" Value="Center" TargetName="content"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Cancel">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Width" Value="8" TargetName="path"/>
                            <Setter Property="Height" Value="9" TargetName="path"/>
                            <Setter Property="Data" Value="{DynamicResource CancelGeometry}" TargetName="path"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Back">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="RenderTransform" TargetName="path">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="180"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="Tag" Value="Next">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Grid.Column" TargetName="path" Value="2"/>

                        </Trigger>
                        <Trigger Property="Tag" Value="Post">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="RenderTransform" TargetName="path">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="270"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>

                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.7"/>
                            <Setter Property="BorderBrush" Value="Transparent"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.3"/>
                            <Setter Property="Fill" TargetName="rectangle" Value="#FF000000"/>
                            <Setter Property="LayoutTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="RenderTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform Y="1"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" Value="#FFF7f7f7"/>
                            <Setter Property="Foreground" Value="#FFb6b6b6"/>
                            <Setter Property="BorderBrush" Value="#FFCCCCCC"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="Visibility" TargetName="rectangle" Value="Collapsed"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="CommonButtonStyleSmall" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="#FFF7F7F7"/>
        <Setter Property="BorderBrush" Value="#FFBBBBBB"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FF666666"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Margin" Value="10,0,0,0"/>
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" ClipToBounds="True" >
                        <Grid>
                            <Rectangle SnapsToDevicePixels="True" x:Name="rectangle" RadiusX="4" RadiusY="4" Opacity="0.08" Grid.ColumnSpan="2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#00000000" Offset="0"/>
                                        <GradientStop Color="Black" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Grid  x:Name="stackPanel" VerticalAlignment="Center" Margin="3,2" Grid.Column="1" HorizontalAlignment="Stretch" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.RenderTransform>
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                                <ContentPresenter x:Name="content" Grid.Column="1" Margin="3,0" SnapsToDevicePixels="True" VerticalAlignment="Center" />
                                <Path  Visibility="Collapsed" x:Name="path" Data="M5.5053711,3.9831572 L6.6279297,3.9831572 L8.878418,6.2336454 L6.6279297,8.4841337 L5.5053711,8.4841337 L7.3583984,6.6311064 L0.92919922,6.6311064 L0.92919922,5.8361845 L7.3583984,5.8361845 z" Fill="{TemplateBinding Foreground}" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Width="11" Height="7" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>

                            </Grid>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Tag" Value="{x:Null}">
                            <Setter Property="HorizontalAlignment" Value="Center" TargetName="content"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Cancel">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Width" Value="8" TargetName="path"/>
                            <Setter Property="Height" Value="9" TargetName="path"/>
                            <Setter Property="Data" Value="{DynamicResource CancelGeometry}" TargetName="path"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="Back">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="RenderTransform" TargetName="path">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="180"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="Tag" Value="Next">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="Grid.Column" TargetName="path" Value="2"/>

                        </Trigger>
                        <Trigger Property="Tag" Value="Post">
                            <Setter Property="Visibility" Value="Visible" TargetName="path"/>
                            <Setter Property="RenderTransform" TargetName="path">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="270"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>

                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF393939" Offset="0"/>
                                        <GradientStop Color="#FF4D4D4D" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.7"/>
                            <Setter Property="BorderBrush" Value="Transparent"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="rectangle" Value="0.3"/>
                            <Setter Property="Fill" TargetName="rectangle" Value="#FF000000"/>
                            <Setter Property="LayoutTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="RenderTransform" TargetName="stackPanel">
                                <Setter.Value>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform Y="1"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="ToggleButton.IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" Value="#FFF7f7f7"/>
                            <Setter Property="Foreground" Value="#FFb6b6b6"/>
                            <Setter Property="BorderBrush" Value="#FFCCCCCC"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="Visibility" TargetName="rectangle" Value="Collapsed"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NewInfoToggleButtonStyle" TargetType="{x:Type ToggleButton}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
        <Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#FFA5A5A5"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="MinWidth" Value="16"/>
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid>
                        <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding Foreground}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" CornerRadius="10" >
                            <Path Data="M0,4 L3,4 3,9.1048039 0,9.1048039 z M1.5,0 C2.3284271,0 3,0.67157286 3,1.5 3,2.3284271 2.3284271,3 1.5,3 0.67157291,3 4.4703484E-08,2.3284271 0,1.5 4.4703484E-08,0.67157286 0.67157291,0 1.5,0 z" Fill="{TemplateBinding Foreground}" Height="9" Stretch="Fill" SnapsToDevicePixels="True" Width="2.75" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                        <Popup AllowsTransparency="True" IsHitTestVisible="False" StaysOpen="False" Placement="Left" HorizontalOffset="15" VerticalOffset="8" IsOpen="{Binding IsChecked, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                            <Grid Margin="5">
                                <ContentControl Content="ContentControl" Style="{DynamicResource RoundedShadowControl}" Opacity="0.4"/>
                                <Border BorderBrush="#FFBEBEBE" SnapsToDevicePixels="True" BorderThickness="1"  CornerRadius="4" Padding="4" MaxWidth="180" VerticalAlignment="Top">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFF3F3F3" Offset="0"/>
                                            <GradientStop Color="#FFEDEDED" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>

                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>

                                        <TextBlock FontSize="12" FontWeight="SemiBold" Text="Why this may be a problem" VerticalAlignment="Center" Margin="5,0" Foreground="#FF444444"/>
                                        <TextBlock FontSize="12" TextWrapping="Wrap" Text="{TemplateBinding Tag}"  Margin="5" Grid.Row="1" Foreground="#FF666666"/>
                                    </Grid>

                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="IsChecked" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="{DynamicResource MouseOverBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Background" Value="{DynamicResource PressedBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Background" Value="{DynamicResource SelectionBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true"/>
                        <Trigger Property="IsChecked" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                            <Setter Property="Opacity" Value="0.4"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="DarkgrayColor" Color="#FF888888"/>
    <Style TargetType="{x:Type CheckBox}">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Background" Value="{DynamicResource DarkgrayColor}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Margin" Value="0,5,0,0"/>
        <Setter Property="Foreground" Value="#FF767676"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type CheckBox}">
                    <Grid SnapsToDevicePixels="True">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="path">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.22" Value="0.004"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="path">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.22" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Indeterminate">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="IndeterminateRect" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="00:00:00.2"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="Bullet" Width="12" Height="12" >
                            <Rectangle x:Name="Background" Style="{DynamicResource NormalRectangleStyle}" Stroke="{TemplateBinding Background}" Fill="Transparent"/>
                            <Rectangle x:Name="HoverRectangle" Style="{DynamicResource HoverRectangleStyle}" Visibility="Collapsed"/>
                            <Path x:Name="path" Data="M8.7890625,1.5987244 L8.9941406,1.8916931 C8.1582031,2.5205994 7.2285151,3.4893498 6.2050781,4.7979431 C5.1816406,6.1065369 4.4003906,7.3291931 3.8613281,8.4659119 L3.4277344,8.7588806 C3.0683594,9.0088806 2.8242188,9.1944275 2.6953125,9.3155212 C2.6445313,9.1319275 2.5332031,8.8311462 2.3613281,8.4131775 L2.1972656,8.0323181 C1.9628905,7.4854431 1.7451171,7.0811462 1.5439453,6.8194275 C1.3427734,6.5577087 1.1171875,6.3838806 0.8671875,6.2979431 C1.2890625,5.8526306 1.6757813,5.6299744 2.0273438,5.6299744 C2.328125,5.6299744 2.6621094,6.0381775 3.0292969,6.8545837 L3.2109375,7.26474 C3.8710935,6.1514587 4.71875,5.0694275 5.7539063,4.0186462 C6.789062,2.9678655 7.8007808,2.1612244 8.7890625,1.5987244 z" Fill="White" HorizontalAlignment="Center" Height="12" RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center" Width="13" Margin="2,0,0,2">
                                <Path.OpacityMask>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#00000000" Offset="1"/>
                                        <GradientStop Color="White" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.OpacityMask>
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Rectangle Visibility="Collapsed" x:Name="IndeterminateRect"  Margin="3" Fill="{DynamicResource DarkgrayColor}" Opacity="0">

                            </Rectangle>
                        </Grid>
                        <ContentPresenter Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="HasContent" Value="true">

                            <Setter Property="Padding" Value="4,0,0,0"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="HoverRectangle" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="Background" Property="Fill" Value="Transparent"/>
                            <Setter Property="Foreground" Value="#FF3c3c3c"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="true">
                            <Setter TargetName="Background" Property="Fill" Value="{DynamicResource DarkgrayColor}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#FFCCCCCC"/>
                            <Setter Property="Opacity" Value="0.3"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="{x:Null}">
                            <Setter TargetName="IndeterminateRect" Property="Visibility" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="Tag" Value="LighterShade">
                            <Setter TargetName="Background" Property="Fill" Value="Transparent"/>
                            <Setter TargetName="Background" Property="Stroke" Value="White"/>
                            <Setter TargetName="HoverRectangle" Property="Fill" Value="#88FFFFFF"/>
                            <Setter TargetName="IndeterminateRect" Property="Fill" Value="#EEFFFFFF"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="GrayButtonSmall" BasedOn="{StaticResource CommonButtonStyleSmall}">
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Background" Value="#FF8c8c8c"/>
        <Setter Property="BorderThickness" Value="0"/>
    </Style>

    <Style TargetType="Button" x:Key="HyperlinkButton">
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Foreground" Value="#FF000099"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Background="Transparent">
                        <TextBlock Margin="3,0" TextDecorations="Underline" Background="{TemplateBinding Background}" Text="{TemplateBinding Content}"/>
                        <ContentPresenter Opacity="0"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" Value="0.4"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="ProgressbarStyle" TargetType="{x:Type ProgressBar}">
        <Setter Property="Width" Value="22" />
        <Setter Property="Height" Value="22"/>
        <Setter Property="Foreground" Value="#FFE0E0E0"/>
        <Setter Property="Background" Value="#FFaaaaaa"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ProgressBar}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Animation" RepeatBehavior="Forever" />

                    </ControlTemplate.Resources>
                    <Viewbox Stretch="Fill">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Determinate"/>
                                <VisualState x:Name="Indeterminate">
                                    <Storyboard RepeatBehavior="Forever" >
                                        <DoubleAnimation  BeginTime="00:00:00" To="30" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.1" To="60" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.2" To="90" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.3" To="120" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.4" To="150" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.5" To="180" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.6" To="210" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.7" To="240" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.8" To="270" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:00.9" To="300" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:01.0" To="330" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                        <DoubleAnimation  BeginTime="00:00:01.1" To="360" Duration="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="TemplateRoot" SnapsToDevicePixels="true" Height="28" Width="28">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.5*"/>
                                <ColumnDefinition Width="0.5*"/>
                            </Grid.ColumnDefinitions>
                            <Ellipse Fill="#00FDFDFD" StrokeThickness="1"  Grid.ColumnSpan="2"/>
                            <Grid Grid.ColumnSpan="2">
                                <Path Grid.ColumnSpan="1" Data="M13,18.9 L13.238549,18.9426 C13.486829,18.980536 13.741117,19.000209 14,19.000209 14.258883,19.000209 14.513171,18.980536 14.761451,18.9426 L15,18.9 15,28 13,28 z M17.314682,17.741999 L21.866,25.624959 20.133843,26.625 15.583,18.742859 15.718771,18.696921 C16.254868,18.500633 16.747981,18.215181 17.180155,17.858526 z M10.685318,17.741999 L10.819844,17.858526 C11.252018,18.215181 11.745132,18.500633 12.281229,18.696921 L12.417,18.742859 7.8661556,26.625 6.1339998,25.624959 z M18.742859,15.583 L26.625,20.133844 25.624959,21.865999 17.742,17.314683 17.858527,17.180156 C18.215181,16.747981 18.500633,16.254867 18.696921,15.718771 z M9.2581401,15.583 L9.3040786,15.718771 C9.5003662,16.254867 9.7858171,16.747981 10.142471,17.180155 L10.258999,17.314683 2.3760405,21.865999 1.3760004,20.133845 z M18.9,13 L28,13 28,15 18.9,15 18.9426,14.76145 C18.980536,14.51317 19.00021,14.258882 19.00021,13.999999 19.00021,13.741116 18.980536,13.486828 18.9426,13.238548 z M0,13 L9.1000001,13 9.0573993,13.238549 C9.019465,13.486829 8.9997902,13.741117 8.9997902,14 8.9997902,14.258883 9.019465,14.513171 9.0573993,14.761451 L9.099999,15 0,15 z M25.624959,6.1339998 L26.625,7.8661547 18.742861,12.417 18.696923,12.281229 C18.500635,11.745132 18.215183,11.252017 17.858529,10.819843 L17.742,10.685317 z M2.3760405,6.1339998 L10.259,10.685317 10.142472,10.819843 C9.7858179,11.252017 9.5003667,11.745132 9.3040791,12.281229 L9.2581403,12.417 1.3760004,7.8661547 z M20.133843,1.3759995 L21.866,2.3760414 17.314682,10.259 17.180155,10.142472 C16.747981,9.7858171 16.254868,9.5003662 15.718771,9.3040781 L15.583,9.2581406 z M7.8661556,1.3759995 L12.417,9.2581406 12.281229,9.3040781 C11.745132,9.5003662 11.252018,9.7858171 10.819843,10.142472 L10.685317,10.259 6.1339998,2.3760414 z M13,0 L15,0 15,9.0999994 14.761451,9.0573988 C14.513171,9.0194645 14.258883,8.9997902 14,8.9997902 13.741117,8.9997902 13.486829,9.0194645 13.238549,9.0573988 L13,9.0999994 z" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Stretch" Height="Auto" Margin="0" Opacity="0.7" RenderTransformOrigin="0.5,0.500011639795018" Stretch="Fill" StrokeThickness="1" VerticalAlignment="Stretch" Width="Auto" />
                            </Grid>
                            <Grid x:Name="grid" SnapsToDevicePixels="True" Grid.ColumnSpan="2" RenderTransformOrigin="0.5,0.5">
                                <Grid.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Grid.RenderTransform>
                                <Path x:Name="path" Grid.ColumnSpan="1" Data="M0,0 L2,0 2,9.1002121 1.761451,9.0576105 C1.513171,9.0196753 1.258883,9 1,9 0.741117,9 0.486829,9.0196753 0.238549,9.0576105 L0,9.1002121 z" Fill="{TemplateBinding Background}" Height="9.1" RenderTransformOrigin="0.5,1.53842568178789" Stretch="Fill" StrokeThickness="1"  Opacity="0.05" HorizontalAlignment="Stretch" Margin="13,0" VerticalAlignment="Top" Width="Auto"/>
                                <Path x:Name="path1" Grid.ColumnSpan="1" Data="M4.5505695,3.7223128E-24 L6.2826215,0.9999999 1.7315785,8.8826352 1.5970595,8.7661122 C1.1649115,8.4094723 0.67182746,8.1240329 0.13576346,7.9277533 L4.5898438E-07,7.8818167 z" Fill="{TemplateBinding Background}" Height="8.883" RenderTransformOrigin="-0.252029279550734,1.42123989116897" Stretch="Fill" StrokeThickness="1" Opacity="0.2" Grid.Column="0" Margin="0,1.376,6.134,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="6.283"/>
                                <Path x:Name="path2" Grid.ColumnSpan="1" Data="M7.882637,4.7845459E-08 L8.882637,1.7320508 1.00082,6.2826204 0.954884,6.1468574 C0.758604,5.6107934 0.473164,5.1177084 0.116524,4.6855604 L7.1054274E-15,4.5510424 z" Fill="{TemplateBinding Background}" Height="6.283" RenderTransformOrigin="-0.421239580336092,1.2520292986792" Stretch="Fill" StrokeThickness="1" Opacity="0.6" Grid.Column="0" Margin="0,6.134,1.375,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="8.883"/>
                                <Path x:Name="path3" Grid.ColumnSpan="1" Data="M9.716797E-08,0 L9.1002121,0 9.1002121,2.000001 9.716797E-08,2.000001 0.042601097,1.761451 C0.080538097,1.513171 0.1002121,1.258883 0.1002121,1 0.1002121,0.741117 0.080538097,0.486829 0.042601097,0.238549 z" Fill="{TemplateBinding Background}" Height="Auto" RenderTransformOrigin="-0.538425681787886,0.499999761581535" Stretch="Fill" StrokeThickness="1" Opacity="0.8" Grid.Column="0" Margin="0,13" HorizontalAlignment="Right" Width="9.1"/>
                            </Grid>
                        </Grid>

                    </Viewbox>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="Tag" Value="LigherShade">
                <Setter Property="Background" Value="White"/>
                <Setter Property="Foreground" Value="#AA000000"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="{x:Type extToolkit:BusyIndicator}">
        <Setter Property="BusyContent" Value="Please wait..."/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="OverlayStyle">
            <Setter.Value>
                <Style TargetType="{x:Type Rectangle}">
                    <Setter Property="Fill" Value="White"/>
                    <Setter Property="Opacity" Value="0.5"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ProgressBarStyle" Value="{DynamicResource ProgressbarStyle}"/>
        <Setter Property="DisplayAfter" Value="0:0:0.1"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type extToolkit:BusyIndicator}">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="VisibilityStates">
                                <VisualState x:Name="Hidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busycontent">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="overlay">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Visible">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busycontent">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="overlay">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BusyStatusStates">
                                <VisualState x:Name="Idle">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.001" Storyboard.TargetProperty="(UIElement.IsEnabled)" Storyboard.TargetName="content">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <system:Boolean>True</system:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Busy">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.001" Storyboard.TargetProperty="(UIElement.IsEnabled)" Storyboard.TargetName="content">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <system:Boolean>False</system:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Name="content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Focusable="False" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        <Rectangle x:Name="overlay" Style="{TemplateBinding OverlayStyle}" Fill="#FFe7e7e7"/>
                        <ContentPresenter x:Name="busycontent">
                            <ContentPresenter.Content>
                                <Border SnapsToDevicePixels="True" HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="1" Background="#7F444444" CornerRadius="4" Padding="5">
                                    <StackPanel>



                                        <ProgressBar Margin="0,8,0,4" IsIndeterminate="{TemplateBinding IsBusy}" Grid.Row="1" Style="{TemplateBinding ProgressBarStyle}" Background="White" Foreground="#FFD6D6D6"/>
                                        <ContentPresenter TextBlock.Foreground="White" ContentTemplate="{TemplateBinding BusyContentTemplate}" Content="{TemplateBinding BusyContent}" Margin="8"/>
                                    </StackPanel>
                                </Border>

                            </ContentPresenter.Content>
                        </ContentPresenter>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>