-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
701 lines (598 loc) · 76.5 KB
/
App.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
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
<Application x:Class="ErpAlgerie.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ErpAlgerie"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:fa="http://schemas.fontawesome.io/icons/"
xmlns:dragablz="http://dragablz.net/winfx/xaml/dragablz"
xmlns:tree="clr-namespace:ErpAlgerie.Pages.Reports"
xmlns:s="https://github.com/canton7/Stylet">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<s:ApplicationLoader>
<s:ApplicationLoader.Bootstrapper>
<local:Bootstrapper/>
</s:ApplicationLoader.Bootstrapper>
</s:ApplicationLoader>
<!-- MahApps -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
<!-- Material Design -->
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Blue.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
<!-- Material Design: MahApps Compatibility -->
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Fonts.xaml" />
<!--<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Flyout.xaml" />-->
<ResourceDictionary Source="pack://application:,,,/Dragablz;component/Themes/materialdesign.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Converter for Indentation of items-->
<tree:TreeListViewConverter x:Key="TreeListViewConverter"/>
<!--Control Template for TreeViewItem's.-->
<ControlTemplate TargetType="TreeViewItem" x:Key="TreeListViewItem">
<!--Grid containing the current information and the subnodes.-->
<StackPanel>
<!--Border wrapping the content presenter.-->
<Border x:Name="Border" BorderThickness="0 0 0 1" BorderBrush="WhiteSmoke">
<!--GridViewRowPrsenter containing the current information.-->
<GridViewRowPresenter Content="{TemplateBinding Header}"
Columns="{Binding Columns,
RelativeSource={RelativeSource Mode=FindAncestor,
AncestorType=tree:TreeListView}}"/>
</Border>
<!--ItemsPresenter containing the subnodes-->
<ItemsPresenter x:Name="ItemsPresenter" Visibility="Collapsed"/>
</StackPanel>
<ControlTemplate.Triggers>
<!--Trigger used to show the sub items-->
<Trigger Property="IsExpanded" Value="True">
<Setter TargetName="ItemsPresenter" Property="Visibility" Value="Visible"/>
</Trigger>
<!--Trigger used to change the color based on selection-->
<Trigger Property="IsSelected" Value="true">
<!--Change the background color-->
<Setter TargetName="Border" Property="Background"
Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
<!--Change the foreground color-->
<Setter Property="Foreground"
Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
</Trigger>
<!--Trigger used to change the color based on selection-->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true"/>
<Condition Property="IsSelectionActive" Value="false"/>
</MultiTrigger.Conditions>
<!--Change the background color-->
<Setter TargetName="Border" Property="Background"
Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
<!--Change the foreground color-->
<Setter Property="Foreground"
Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
</MultiTrigger>
<!--Trigger used to change the color based on the status of the item-->
<Trigger Property="IsEnabled" Value="false">
<!--Change the foreground color-->
<Setter Property="Foreground"
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!--Control Template for TreeListViewExpander's.-->
<ControlTemplate TargetType="{x:Type tree:TreeListViewExpander}" x:Key="TreeListViewExpander">
<StackPanel Orientation="Horizontal" x:Name="ContainerElement">
<!--Use a FrameworkElement to indent the button-->
<FrameworkElement Width="{Binding RelativeSource={x:Static RelativeSource.Self},
Converter={StaticResource TreeListViewConverter}}"/>
<!--Use a standard toggle button-->
<CheckBox IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource Mode=FindAncestor,
AncestorType=TreeViewItem}}" Width="18" VerticalAlignment="Center" Margin="1">
<CheckBox.Template>
<ControlTemplate>
<materialDesign:PackIcon Kind="SubdirectoryArrowRight"/>
</ControlTemplate>
</CheckBox.Template>
</CheckBox>
</StackPanel>
<ControlTemplate.Triggers>
<!--Trigger used to show/hide the expand button-->
<DataTrigger Binding="{Binding HasItems, RelativeSource={RelativeSource Mode=FindAncestor,
AncestorType=TreeViewItem}}" Value="False">
<Setter TargetName="ContainerElement" Property="Visibility" Value="Hidden"/>
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!--Apply this style to all controls of type 'TreeListView'.-->
<Style TargetType="{x:Type tree:TreeListView}">
<!--Set the control template.-->
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type tree:TreeListView}">
<ControlTemplate.Resources>
<!--Apply this style to all 'TreeViewItem's.-->
<Style TargetType="TreeViewItem">
<Setter Property="Template" Value="{StaticResource TreeListViewItem}"/>
</Style>
<!--Apply this style to all 'TreeListViewExpander's.-->
<Style TargetType="tree:TreeListViewExpander">
<Setter Property="Template" Value="{StaticResource TreeListViewExpander}"/>
</Style>
</ControlTemplate.Resources>
<!--Create a standard border around the 'TreeListView'.-->
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<!--ScrollViewer providing horizontal scrolling functionality
for both, content and headers.-->
<ScrollViewer HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Disabled">
<!--Grid containing the header row and all the content rows.-->
<Grid>
<Grid.RowDefinitions>
<!--The header row.-->
<RowDefinition Height="Auto"/>
<!--The content row.-->
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--The header row.-->
<GridViewHeaderRowPresenter Columns="{TemplateBinding Columns}"
AllowsColumnReorder="{TemplateBinding AllowsColumnReorder}"/>
<!--ScrollViewer providing vertical scrolling
functionality for the content.-->
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto"
Grid.Row="1">
<!--ItemsPresenter containg the content.-->
<ItemsPresenter/>
</ScrollViewer>
</Grid>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- MahApps Brushes -->
<SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource Primary700}"/>
<SolidColorBrush x:Key="AccentBaseColorBrush" Color="{DynamicResource Primary600}" />
<SolidColorBrush x:Key="AccentColorBrush" Color="{DynamicResource Primary500}"/>
<SolidColorBrush x:Key="AccentColorBrush2" Color="{DynamicResource Primary400}"/>
<SolidColorBrush x:Key="AccentColorBrush3" Color="{DynamicResource Primary300}"/>
<SolidColorBrush x:Key="AccentColorBrush4" Color="{DynamicResource Primary200}"/>
<SolidColorBrush x:Key="WindowTitleColorBrush" Color="{DynamicResource Primary700}"/>
<SolidColorBrush x:Key="AccentSelectedColorBrush" Color="{DynamicResource Primary500Foreground}"/>
<LinearGradientBrush x:Key="ProgressBrush" EndPoint="0.001,0.5" StartPoint="1.002,0.5">
<GradientStop Color="{DynamicResource Primary700}" Offset="0"/>
<GradientStop Color="{DynamicResource Primary300}" Offset="1"/>
</LinearGradientBrush>
<SolidColorBrush x:Key="CheckmarkFill" Color="{DynamicResource Primary500}"/>
<SolidColorBrush x:Key="RightArrowFill" Color="{DynamicResource Primary500}"/>
<SolidColorBrush x:Key="IdealForegroundColorBrush" Color="{DynamicResource Primary500Foreground}"/>
<SolidColorBrush x:Key="IdealForegroundDisabledBrush" Color="{DynamicResource Primary500}" Opacity="0.4"/>
<SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchBrush.Win10" Color="{DynamicResource Primary500}" />
<SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchMouseOverBrush.Win10" Color="{DynamicResource Primary400}" />
<SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorCheckedBrush.Win10" Color="{DynamicResource Primary500Foreground}" />
<ItemsPanelTemplate x:Key="VSP">
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
<Style x:Key="BaseDrag" TargetType="{x:Type dragablz:TabablzControl}" BasedOn="{StaticResource MaterialDesignTabablzControlStyle}" />
<!--<Style x:Key="MaterialDesignTextFieldBoxComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource MaterialDesignFloatingHintComboBox}">
<Setter Property="Padding" Value="10" />
<Setter Property="Height" Value="60" />
<Setter Property="Margin" Value="0 12 0 0" />
<Setter Property="Background" Value="#EBEBEB" />
</Style>-->
<!--<Style x:Key="MaterialDesignFloatingHintTextBoxWhite" TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignFloatingHintTextBox }">-->
<Style x:Key="MaterialDesignFloatingHintTextBoxWhite" TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignFloatingHintTextBox}">
<Style.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="5"/>
</Style>
</Style.Resources>
<Setter Property="Padding" Value="5 1"/>
<Setter Property="Background" Value="White" />
<Setter Property="BorderBrush" Value="#AFBFC0" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="VerticalContentAlignment" Value="Bottom" />
<Setter Property="materialDesign:HintAssist.FloatingOffset" Value="-8,-28"/>
<Setter Property="Margin" Value="0 16 0 0"/>
<Setter Property="materialDesign:HintAssist.FloatingScale" Value=".90"/>
<Setter Property="materialDesign:HintAssist.HintOpacity" Value=".6"/>
</Style>
<Style TargetType="{x:Type Expander}" BasedOn="{StaticResource MaterialDesignExpander}">
<Setter Property="Background" Value="White" />
</Style>
<Style x:Key="MaterialDesignFloatingHintTextBoxLarge" TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignFloatingHintTextBoxWhite}">
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="VerticalContentAlignment" Value="Top" />
</Style>
<Style x:Key="MaterialDesignComboBoxEditableTextBox" BasedOn="{StaticResource MaterialDesignComboBoxEditableTextBox}" TargetType="{x:Type TextBox}">
<Setter Property="wpf:HintAssist.FloatingScale" Value="1"/>
<Setter Property="FontSize" Value="22"/>
<Setter Property="Padding" Value="10"/>
</Style>
<!--Rounded corners combo box-->
<Style TargetType="{x:Type ComboBox}" x:Key="MaterialDesignFloatingHintComboBoxWhite"
BasedOn="{StaticResource MaterialDesignFloatingHintComboBox}">
<Setter Property="Margin" Value="0"/>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="#AFBFC0"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="10 5"/>
<Setter Property="wpf:HintAssist.IsFloating" Value="False"/>
<Setter Property="wpf:ComboBoxAssist.ClassicMode" Value="True"/>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False" >
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type ComboBox}" x:Key="MaterialDesignFloatingHintComboBoxWhiteTable"
BasedOn="{StaticResource MaterialDesignFloatingHintComboBox}">
<Setter Property="Margin" Value="0"/>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="#AFBFC0"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="10 5"/>
<Setter Property="wpf:HintAssist.IsFloating" Value="False"/>
<Setter Property="wpf:ComboBoxAssist.ClassicMode" Value="True"/>
</Style>
<!--<Style x:Key="MaterialDesignFloatingHintComboBoxWhite" TargetType="{x:Type ComboBox}"
BasedOn="{StaticResource roundedCornersComboBox}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
</Style>-->
<Style x:Key="MaterialDesignFloatingHintDatePickerEx" TargetType="{x:Type DatePicker}" BasedOn="{StaticResource MaterialDesignFloatingHintDatePicker}">
<Setter Property="Margin" Value="10 0"/>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="#AFBFC0"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="19 15"/>
<Setter Property="wpf:HintAssist.IsFloating" Value="False"/>
<Setter Property="wpf:ComboBoxAssist.ClassicMode" Value="True"/>
</Style>
<Style x:Key="ToolButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth0"/>
<Setter Property="Width" Value="25" />
<Setter Property="Height" Value="25" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Background" Value="White" />
<Setter Property="Foreground" Value="#AFBFC0" />
<Setter Property="BorderBrush" Value="#AFBFC0" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="#2196F3"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="HomeButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="Width" Value="auto" />
<Setter Property="materialDesign:ShadowAssist.ShadowDepth" Value="Depth2"/>
<Setter Property="materialDesign:ShadowAssist.ShadowEdges" Value="Bottom"/>
<Setter Property="Height" Value="90" />
<Setter Property="Margin" Value="10"/>
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="Foreground" Value="#AFBFC0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border CornerRadius="15" Width="90" materialDesign:ShadowAssist.ShadowDepth="Depth3" Height="90" Background="White" BorderThickness="1" Padding="2">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="#2196F3"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="HeaderWhite" TargetType="{x:Type dragablz:DragablzItem}" BasedOn="{StaticResource MaterialDesignDragableTabItemStyle}">
<Setter Property="Foreground" Value="Black" />
<Setter Property="Height" Value="29"/>
<Setter Property="Padding" Value="10 2"/>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#EEF0F2" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="SideToolButton" TargetType="{x:Type Button}" BasedOn="{StaticResource ToolButton}">
<Setter Property="Foreground" Value="#AFBFC0" />
<Setter Property="FontSize" Value="12" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Margin" Value="4" />
<Setter Property="Background" Value="White" />
<Setter Property="Width" Value="auto" />
<Setter Property="MinWidth" Value="29" />
<Setter Property="materialDesign:ShadowAssist.ShadowDepth" Value="Depth0" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="4" />
<Setter Property="Height" Value="29"/>
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="#2196F3"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="LinkButton"
TargetType="Button">
<Setter Property="Padding" Value="5 5"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="Button">
<TextBlock VerticalAlignment="Center"
TextDecorations="">
<ContentPresenter /></TextBlock>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter
Property="Foreground"
Value="#2196F3" />
<Style.Triggers>
<Trigger
Property="IsMouseOver"
Value="true">
<Setter
Property="Foreground"
Value="Black" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="LinkButtonPlus"
TargetType="Button">
<Setter Property="Padding" Value="0"/>
<Setter Property="Background" Value="Gray"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Margin" Value="10 0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border CornerRadius="3" Background="#EEF0F2" BorderThickness="1" Padding="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ToolBarButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="Width" Value="30" />
<Setter Property="Height" Value="30" />
<Setter Property="Padding" Value="0" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="materialDesign:ShadowAssist.ShadowDepth" Value="Depth0"/>
<Setter Property="Background" Value="White" />
<Setter Property="BorderBrush" Value="#AFBFC0" />
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Margin" Value="5 0" />
</Style>
<Style x:Key="ToolBarAction" TargetType="{x:Type Button}" BasedOn="{StaticResource SideToolButton}">
<Setter Property="FontSize" Value="12"/>
<Setter Property="Padding" Value="10 0"/>
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="White"/>
</Style>
<Style x:Key="PosButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="Background" Value="#078CD8" />
<Setter Property="Padding" Value="2" />
<Setter Property="Foreground" Value="White" />
</Style>
<Style x:Key="DetailButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="Background" Value="#078CD8" />
<Setter Property="Padding" Value="-5" />
<Setter Property="Margin" Value="0"/>
<Setter Property="Height" Value="28"/>
<Setter Property="Foreground" Value="White" />
</Style>
<Style x:Key="ImportButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedAccentButton}">
<Setter Property="FontSize" Value="12"/>
<Setter Property="Height" Value="25"/>
<Setter Property="Background" Value="#EEF0F2" />
<Setter Property="materialDesign:ShadowAssist.ShadowDepth" Value="Depth0"/>
<Setter Property="Padding" Value="2" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="FontSize" Value="12"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
</ResourceDictionary>
<!--<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<s:ApplicationLoader>
<s:ApplicationLoader.Bootstrapper>
<local:Bootstrapper/>
</s:ApplicationLoader.Bootstrapper>
</s:ApplicationLoader>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
--><!-- Accent and AppTheme setting --><!--
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
<ResourceDictionary Source="Pack://application:,,,/Dragablz;component/Themes/mahapps.xaml"/>
--><!--<ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml" />--><!--
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="{x:Type dragablz:TabablzControl}"
BasedOn="{StaticResource MahAppsTabablzControlStyle}" >
<Setter Property="ToolBar.Background" Value="Gray"/>
</Style>
--><!--<Style TargetType="{x:Type Button}">
<Style.Setters>
<Setter Property="Padding" Value="10"/>
</Style.Setters>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Green"/>
<Setter Property="BorderThickness" Value="5"/>
</Trigger>
</Style.Triggers>
</Style>-->
<!--<Style TargetType="TreeViewItem">
<Setter Property="IsTextSearchEnabled" Value="True"/>
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal" Width="150" HorizontalAlignment="Stretch">
<fa:ImageAwesome Icon="{Binding ImageSrc}" Foreground="Black" Width="13"/>
<TextBlock Text="{Binding Header}" Foreground="Black" FontWeight="DemiBold" FontSize="12" Margin="2" HorizontalAlignment="Stretch"/>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
</Trigger>
</Style.Triggers>
</Style>--><!--
<Style TargetType="Border" x:Key="RacePitBorderStyle" >
<Style.Resources>
<LinearGradientBrush x:Key="BackBrush" StartPoint="0.2,1" EndPoint="0.5,1">
<GradientStop Color="#535864" Offset="0.1" />
<GradientStop Color="#535864" Offset="0.9" />
</LinearGradientBrush>
</Style.Resources>
<Setter Property="Background" Value="{StaticResource BackBrush}"/>
</Style>
<DataTemplate x:Key="titleText">
<Border Style="{StaticResource RacePitBorderStyle}" Margin="-30 0" Padding="10 0" Height="30">
<StackPanel Orientation="Horizontal" >
<fa:FontAwesome Icon="ChevronDown" Padding="5 8" Foreground="White"/>
<TextBlock Text="{Binding}"
Padding="5"
VerticalAlignment="Center"
Foreground="#EEF0F2"
FontSize="14"
FontWeight="Normal"
HorizontalAlignment="Stretch"
Width="2500"
TextWrapping="Wrap"/>
</StackPanel>
</Border>
</DataTemplate>
<DataTemplate x:Key="titleTextMenu">
<Border Background="#334051" Margin="-30 0" Padding="10 0" Height="30">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding}"
Padding="4 0"
VerticalAlignment="Center"
Foreground="#A1A9BB"
FontSize="14"
FontWeight="Normal"
HorizontalAlignment="Stretch"
Width="2500"
TextWrapping="Wrap"/>
</StackPanel>
</Border>
</DataTemplate>
<Style TargetType="{x:Type Expander}">
<Setter Property="HeaderTemplate" Value="{StaticResource titleText}"/>
</Style>
<Style TargetType="Expander" x:Key="MenuExander">
<Setter Property="HeaderTemplate" Value="{StaticResource titleTextMenu}"/>
<Setter Property="Background" Value="#334051"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="#9AA4B4"/>
<Setter Property="Padding" Value="10 5"/>
<Setter Property="FontWeight" Value="Heavy"/>
<Setter Property="FontSize" Value="14"/>
</Style>
<Style TargetType="Button" x:Key="MenuButton">
<Setter Property="Background" Value="#2B3747"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Padding" Value="10 3"/>
<Setter Property="Cursor" Value="Hand"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Black"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="Button" x:Key="noFocuse">
<Setter Property="Focusable" Value="False"/>
</Style>
<Style TargetType="{x:Type MenuItem}">
<Setter Property="Margin" Value="2"/>
<Setter Property="Background" Value="#FFFFFF"/>
--><!-- You should notice that one... --><!--
</Style>
<Style TargetType="DataGrid">
--><!--Make the border and grid lines a little less imposing--><!--
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="HorizontalGridLinesBrush" Value="Gray" />
<Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="RowStyle">
<Setter.Value>
<Style TargetType="DataGridRow">
<Style.Triggers>
--><!--Highlight selected rows--><!--
<Trigger Property="IsSelected" Value="True">
</Trigger>
<Trigger Property="IsFocused" Value="True">
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="DarkBlue" />
<Setter Property="FontWeight" Value="Bold" />
</Trigger>
</Style.Triggers>
</Style>
</Setter.Value>
</Setter>
<Setter Property="CellStyle">
<Setter.Value>
<Style TargetType="DataGridCell">
--><!--Add some padding around the contents of a cell--><!--
<Setter Property="Padding" Value="3" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="DataGridCell">
<Border Padding="{TemplateBinding Padding}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}">
<ContentPresenter />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FocusVisualStyle">
<Setter.Value>
<Style TargetType="Control">
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
<ItemsPanelTemplate x:Key="VSP">
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
</ResourceDictionary>-->
</Application.Resources>
</Application>