-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml
674 lines (672 loc) · 30.6 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
<Application x:Class="__UI_____Panda_A_.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:__UI_____Panda_A_"
StartupUri="Loader/Loader.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!--<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.Indigo.xaml" />-->
<!--<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>-->
</ResourceDictionary.MergedDictionaries>
<BitmapImage x:Key="pandaofficiallogo" UriSource="Image/PandaBeta1.png"></BitmapImage>
<BitmapImage x:Key="pandatechnology" UriSource="Image/PandaLogo.png"></BitmapImage>
<ControlTemplate x:Key="WindowTemplateKey" TargetType="{x:Type Window}">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
<Grid>
<AdornerDecorator>
<ContentPresenter />
</AdornerDecorator>
<ResizeGrip x:Name="WindowResizeGrip" HorizontalAlignment="Right" IsTabStop="false" Visibility="Collapsed" VerticalAlignment="Bottom" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="ResizeMode" Value="CanResizeWithGrip" />
<Condition Property="WindowState" Value="Normal" />
</MultiTrigger.Conditions>
<Setter Property="Visibility" TargetName="WindowResizeGrip" Value="Visible" />
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style x:Key="SwitchBox" TargetType="{x:Type CheckBox}">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border
Name="Background"
Height="25"
Width="40"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
VerticalAlignment="{TemplateBinding VerticalAlignment}"
CornerRadius="5">
<Grid>
<Border
Name="ToggleButton"
Height="15"
Width="15"
Background="#FF605C"
BorderBrush="Transparent"
BorderThickness="0"
CornerRadius="5"
Margin="0,0,15,0"/>
</Grid>
</Border>
<ContentPresenter
x:Name="contentPresenter"
Grid.Column="1"
Focusable="False"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Margin="{TemplateBinding Padding}"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger
Property="HasContent"
Value="True">
<Setter
Property="Padding"
Value="5,3.5,0,0"/>
</Trigger>
<Trigger
Property="IsChecked" Value="true">
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<ThicknessAnimationUsingKeyFrames
BeginTime="00:00:00"
Storyboard.TargetName="ToggleButton"
Storyboard.TargetProperty="(FrameworkElement.Margin)">
<SplineThicknessKeyFrame KeyTime="0:0:0.25" Value="0,0,15,0"/>
</ThicknessAnimationUsingKeyFrames>
<ColorAnimation
To="#FF605C"
Storyboard.TargetName="ToggleButton"
Storyboard.TargetProperty="(Control.Background).(SolidColorBrush.Color)"
FillBehavior="HoldEnd"
Duration="0:0:0.25"
AutoReverse="False"/>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ThicknessAnimationUsingKeyFrames
BeginTime="00:00:00"
Storyboard.TargetName="ToggleButton"
Storyboard.TargetProperty="(FrameworkElement.Margin)">
<SplineThicknessKeyFrame KeyTime="0:0:0.25" Value="15,0,0,0"/>
</ThicknessAnimationUsingKeyFrames>
<ColorAnimation
To="#00CA4E"
Storyboard.TargetName="ToggleButton"
Storyboard.TargetProperty="(Control.Background).(SolidColorBrush.Color)"
FillBehavior="HoldEnd"
Duration="0:0:0.25"
AutoReverse="False"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<SolidColorBrush
Color="#00ffffff"
x:Key="Button.Static.Background" />
<SolidColorBrush
Color="#FF262626"
x:Key="Button.MouseOver.Background" />
<SolidColorBrush
Color="#FF121212"
x:Key="Button.Pressed.Background" />
<SolidColorBrush
Color="#ff181818"
x:Key="Button.Disabled.Background" />
<SolidColorBrush
Color="Transparent"
x:Key="ScrollBar.Static.Background" />
<SolidColorBrush
Color="#ffffff"
x:Key="ScrollBar.Pressed.Glyph" />
<SolidColorBrush
Color="#a0a0a0"
x:Key="ScrollBar.MouseOver.Glyph" />
<SolidColorBrush
Color="#404040"
x:Key="ScrollBar.Disabled.Glyph" />
<SolidColorBrush
Color="#808080"
x:Key="ScrollBar.Static.Glyph" />
<SolidColorBrush
Color="#303030"
x:Key="ScrollBar.MouseOver.Background" />
<SolidColorBrush
Color="#404040"
x:Key="ScrollBar.Pressed.Background" />
<SolidColorBrush
Color="#181818"
x:Key="ScrollBar.Disabled.Background" />
<SolidColorBrush
Color="#60ffffff"
x:Key="ScrollBar.Static.Thumb" />
<SolidColorBrush
Color="#70ffffff"
x:Key="ScrollBar.MouseOver.Thumb" />
<SolidColorBrush
Color="#80ffffff"
x:Key="ScrollBar.Pressed.Thumb" />
<SolidColorBrush
Color="#00ffffff"
x:Key="TabItem.Static.Background" />
<SolidColorBrush
Color="#20ffffff"
x:Key="TabItem.MouseOver.Background" />
<SolidColorBrush
Color="#20ffffff"
x:Key="TabItem.Selected.Background" />
<SolidColorBrush
Color="#181818"
x:Key="ListBox.Static.Background" />
<Style
TargetType="{x:Type ScrollViewer}"
x:Key="{x:Type ScrollViewer}">
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="{x:Type ScrollViewer}">
<Grid
Name="Grid"
Background="{TemplateBinding Background}">
<Grid.ColumnDefinitions>
<ColumnDefinition
Width="*" />
<ColumnDefinition
Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition
Height="*" />
<RowDefinition
Height="Auto" />
</Grid.RowDefinitions>
<Rectangle
Name="Corner"
Grid.Column="1"
Grid.Row="1"
Fill="{StaticResource ScrollBar.Static.Background}" />
<ScrollContentPresenter
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
Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow"
Grid.Column="1"
Maximum="{TemplateBinding ScrollableHeight}"
Minimum="0"
Grid.Row="0"
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
ViewportSize="{TemplateBinding ViewportHeight}"
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
<ScrollBar
Name="PART_HorizontalScrollBar"
AutomationProperties.AutomationId="HorizontalScrollBar"
Cursor="Arrow"
Grid.Column="0"
Maximum="{TemplateBinding ScrollableWidth}"
Minimum="0"
Orientation="Horizontal"
Grid.Row="1"
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
ViewportSize="{TemplateBinding ViewportWidth}"
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
TargetType="{x:Type Button}"
x:Key="RoundButton">
<Setter
Property="FrameworkElement.FocusVisualStyle"
Value="{x:Null}" />
<Setter
Property="Background"
Value="{StaticResource Button.Static.Background}" />
<Setter
Property="Foreground"
Value="#FFFFFFFF" />
<Setter
Property="BorderThickness"
Value="1" />
<Setter
Property="HorizontalContentAlignment"
Value="Center" />
<Setter
Property="VerticalContentAlignment"
Value="Center" />
<Setter
Property="Padding"
Value="6 1" />
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="{x:Type Button}">
<Border
Name="border"
Background="{TemplateBinding Background}"
SnapsToDevicePixels="True"
CornerRadius="2">
<ContentPresenter
Name="contentPresenter"
Focusable="False"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Margin="{TemplateBinding Padding}"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Border>
<ControlTemplate.Triggers>
<Trigger
Property="UIElement.IsMouseOver"
Value="True">
<Setter
TargetName="border"
Property="Background"
Value="{StaticResource Button.MouseOver.Background}" />
</Trigger>
<Trigger
Property="IsPressed"
Value="True">
<Setter
TargetName="border"
Property="Background"
Value="{StaticResource Button.Pressed.Background}" />
</Trigger>
<Trigger
Property="IsEnabled"
Value="False">
<Setter
TargetName="border"
Property="Background"
Value="{StaticResource Button.Disabled.Background}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
TargetType="{x:Type Button}"
x:Key="HoverButton">
<Setter
Property="FrameworkElement.OverridesDefaultStyle"
Value="True" />
<Setter
Property="FrameworkElement.Cursor"
Value="Arrow" />
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="{x:Type Button}">
<Border
Name="border"
BorderThickness="1"
CornerRadius="4"
BorderBrush="#454545">
<ContentPresenter
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger
Property="UIElement.IsMouseOver"
Value="True">
<Setter
Property="UIElement.Opacity"
Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
TargetType="{x:Type Button}"
x:Key="NoBorder">
<Setter
Property="FrameworkElement.OverridesDefaultStyle"
Value="True" />
<Setter
Property="FrameworkElement.Cursor"
Value="Arrow" />
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="{x:Type Button}">
<Border
Name="border"
BorderThickness="1"
Background="Transparent"
CornerRadius="4">
<ContentPresenter
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger
Property="UIElement.IsMouseOver"
Value="True">
<Setter
Property="UIElement.Opacity"
Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
TargetType="{x:Type TabControl}"
x:Key="Tabs">
<Setter
Property="Padding"
Value="2" />
<Setter
Property="HorizontalContentAlignment"
Value="Center" />
<Setter
Property="VerticalContentAlignment"
Value="Center" />
<Setter
Property="Background"
Value="{StaticResource TabItem.Selected.Background}" />
<Setter
Property="BorderThickness"
Value="0" />
<Setter
Property="Foreground"
Value="{DynamicResource SystemColors.ControlTextBrushKey}" />
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="{x:Type TabControl}">
<Grid
Name="templateRoot"
ClipToBounds="True"
SnapsToDevicePixels="True"
KeyboardNavigation.TabNavigation="Local">
<Grid.ColumnDefinitions>
<ColumnDefinition
Name="ColumnDefinition0" />
<ColumnDefinition
Name="ColumnDefinition1"
Width="0" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition
Name="RowDefinition0"
Height="Auto" />
<RowDefinition
Name="RowDefinition1"
Height="*" />
</Grid.RowDefinitions>
<ScrollViewer
Name="TabScrollViewer"
VerticalScrollBarVisibility="Disabled"
Background="#00FFFFFF"
HorizontalScrollBarVisibility="Hidden"
ClipToBounds="True">
<StackPanel
Orientation="Horizontal">
<TabPanel
Name="headerPanel"
Background="#00FFFFFF"
IsItemsHost="True"
KeyboardNavigation.TabIndex="1"
ZIndex="1"
Margin="0 2 0 0" />
<Button
Name="AddTabButton"
Width="15"
Height="15"
Margin="4"
Padding="0" Background="#FF505050" BorderBrush="{x:Null}"
Style="{DynamicResource RoundButton}">
<Grid>
<Path
Stroke="#FFFFFFFF"
StrokeThickness="1"
Data="M0,4.5 L9,4.5" />
<Path
Stroke="#FFFFFFFF"
StrokeThickness="1"
Data="M4.5,0 L4.5,9" />
</Grid>
</Button>
</StackPanel>
</ScrollViewer>
<Border
Name="contentPanel"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}"
Grid.Column="0"
KeyboardNavigation.DirectionalNavigation="Contained"
Grid.Row="1"
KeyboardNavigation.TabIndex="2"
KeyboardNavigation.TabNavigation="Local">
<ContentPresenter
Name="PART_SelectedContentHost"
ContentSource="SelectedContent"
Margin="{TemplateBinding Padding}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
TargetType="{x:Type TabItem}"
x:Key="Tab">
<Setter
Property="FrameworkElement.FocusVisualStyle"
Value="{x:Null}" />
<Setter
Property="Foreground"
Value="#FFFFFFFF" />
<Setter
Property="Background"
Value="{StaticResource TabItem.Static.Background}" />
<Setter
Property="Margin"
Value="0" />
<Setter
Property="Padding"
Value="6,2,6,2" />
<Setter
Property="HorizontalContentAlignment"
Value="Stretch" />
<Setter
Property="VerticalContentAlignment"
Value="Stretch" />
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="{x:Type TabItem}">
<Grid
Name="templateRoot"
SnapsToDevicePixels="True"
Background="#181818">
<Border
Name="mainBorder"
BorderBrush="{TemplateBinding BorderBrush}"
CornerRadius="1"
BorderThickness="0"
Background="{TemplateBinding Background}"
Margin="0" />
<StackPanel
Orientation="Horizontal">
<ContentPresenter
Name="contentPresenter"
ContentSource="Header"
Focusable="False"
Margin="{TemplateBinding Padding}"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Button
Name="CloseButton"
Margin="-3 3 3 3"
Padding="0"
Height="13"
Width="13"
Style="{StaticResource RoundButton}">
<Grid>
<Path
Stroke="#FFFFFFFF"
StrokeThickness="1"
Data="M0,0 L5,5" />
<Path
Stroke="#FFFFFFFF"
StrokeThickness="1"
Data="M0,5 L5,0" />
</Grid>
</Button>
</StackPanel>
</Grid>
<ControlTemplate.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition
Value="true"
Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" />
<Condition
Value="false"
Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" />
<Condition
Value="Top"
Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" />
</MultiDataTrigger.Conditions>
<Setter
TargetName="mainBorder"
Property="Background"
Value="{StaticResource TabItem.MouseOver.Background}" />
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition
Value="true"
Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" />
<Condition
Value="Top"
Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" />
</MultiDataTrigger.Conditions>
<Setter
Property="Panel.ZIndex"
Value="1" />
<Setter
TargetName="mainBorder"
Property="Background"
Value="{StaticResource TabItem.Selected.Background}" />
</MultiDataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ProgressBar" TargetType="{x:Type ProgressBar}">
<Setter Property="Foreground" Value="#1e1e1e"/>
<Setter Property="Background" Value="#141414"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ProgressBar}">
<Grid x:Name="TemplateRoot">
<Border CornerRadius="2.5" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
<Rectangle x:Name="PART_Track"/>
<Grid x:Name="PART_Indicator" Margin="5,5,5,5" ClipToBounds="true" HorizontalAlignment="Left">
<Border x:Name="Indicator" Margin="0,0,10,0" CornerRadius="1" Background="{TemplateBinding Foreground}"/>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Orientation" Value="Vertical">
<Setter Property="LayoutTransform" TargetName="TemplateRoot">
<Setter.Value>
<RotateTransform Angle="-90"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type TextBox}" x:Key="HoverTextBox">
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="AllowDrop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBoxBase}">
<Border
Name="Border"
CornerRadius="2"
Padding="2"
Background="#141414"
BorderBrush="#191919"
BorderThickness="1" >
<ScrollViewer Margin="0" x:Name="PART_ContentHost"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Border" Property="Background" Value="#EEEEEE"/>
<Setter TargetName="Border" Property="BorderBrush" Value="#EEEEEE"/>
<Setter Property="Foreground" Value="#888888"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>