-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlexBase.xaml
4827 lines (4740 loc) · 394 KB
/
PlexBase.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
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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:RibbonFileManager"
xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
xmlns:FluentHelpers="clr-namespace:Fluent.Helpers;assembly=Fluent"
xmlns:converters="clr-namespace:Fluent.Converters;assembly=Fluent"
xmlns:conv="clr-namespace:Start9.UI.Wpf.Converters;assembly=Start9.UI.Wpf"
xmlns:disk="clr-namespace:WindowsSharp.DiskItems;assembly=WindowsSharp"
xmlns:ui="clr-namespace:Start9.UI.Wpf;assembly=Start9.UI.Wpf"
xmlns:win="clr-namespace:Start9.UI.Wpf.Windows;assembly=Start9.UI.Wpf"
xmlns:mgrbase="clr-namespace:NT6FileManagerBase;assembly=NT6FileManagerBase">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml" />
<ResourceDictionary Source="pack://application:,,,/Start9.UI.Wpf;Component/Themes/Plex.xaml" />
</ResourceDictionary.MergedDictionaries>
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
<converters:ObjectToImageConverter x:Key="ObjectToImageConverter"/>
<converters:ApplicationMenuRightScrollViewerExtractorConverter x:Key="ApplicationMenuRightScrollViewerExtractorConverter" />
<conv:IconToImageBrushConverter x:Key="IconToImageBrushConverter"/>
<conv:DoubleComparisonConverter x:Key="DoubleComparisonConverter"/>
<!--#region Navigation Bar Styles-->
<!--Style TargetType="{x:Type win:DecoratableWindow}">
<Setter Property="Padding" Value="{Binding BorderThickness, RelativeSource={RelativeSource Mode=Self}}"/>
</Style-->
<Style x:Key="RootGridStyle" TargetType="{x:Type Grid}">
<!--Setter Property="Margin" Value="0,-24,0,0"/-->
</Style>
<!--Style x:Key="NavigationBarGridStyle" TargetType="{x:Type Grid}">
<Setter Property="Height" Value="50"/>
</Style-->
<Style x:Key="NavigationBarBackgroundStyle" TargetType="{x:Type ContentControl}">
<Setter Property="Height" Value="50"/>
<Setter Property="Margin" Value="10,0,18,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContentControl}">
<Grid>
<Path Data="M 19 34
A 19,17 180 1 1 19,0
Q 36,6 46,6
A 11,11 180 1 1 46,28
Q 36,28 19,34
Z" HorizontalAlignment="Left" VerticalAlignment="Center">
<!--Data="M 17 34
A 17,17 180 1 1 17,0
Q 38,6 46,6
A 11,11 180 1 1 46,28
Q 38,28 17,34
Z"-->
<!--Width="50"-->
<Path.RenderTransform>
<TransformGroup>
<!--TranslateTransform X="-280" Y="-12"/>
<ScaleTransform ScaleX="0.9625" ScaleY="1"/-->
</TransformGroup>
</Path.RenderTransform>
<!--HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="56"-->
<!--Path.Data>
<PathGeometry Figures="m 12.327807 289.81714 c -5.4680527 0 -4.8553965 -1.76066 -7.9846772 -1.77066 -2.1058022 -0.0505 -4.30972111 1.76754 -4.3097212 4.45553 -8e-8 2.68799 2.2039189 4.50606 4.3097212 4.45553 3.1292805 -0.01 2.5166243 -1.77066 7.9846772 -1.77066 1.899459 0.0335 3.240643 -1.12201 3.240643 -2.68487 0 -1.56286 -1.341184 -2.71837 -3.240643 -2.68487 z" FillRule="NonZero"/>
</Path.Data-->
<Path.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#20000000" />
<GradientStop Offset="1" Color="#60FFFFFF" />
</LinearGradientBrush>
</Path.Fill>
</Path>
<ContentPresenter Content="{TemplateBinding Content}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="NavigationBackButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource RoundButtonStyle}">
<Setter Property="Width" Value="28"/>
<Setter Property="Height" Value="28"/>
<Setter Property="Margin" Value="3"/>
<Setter Property="Padding" Value="-1,0,2,0"/>
<Setter Property="Content" Value="{DynamicResource SmallBackArrowPathIcon}"/>
</Style>
<Style x:Key="NavigationForwardButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource RoundButtonStyle}">
<Setter Property="Width" Value="17"/>
<Setter Property="Height" Value="17"/>
<Setter Property="Margin" Value="3"/>
<Setter Property="Padding" Value="0,0,-1,0"/>
<Setter Property="Content">
<Setter.Value>
<ContentControl Content="{DynamicResource SmallForwardArrowPathIcon}">
<ContentControl.RenderTransform>
<ScaleTransform CenterX="7" CenterY="7" ScaleX="0.625" ScaleY="0.625"/>
</ContentControl.RenderTransform>
</ContentControl>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="NavigationHistoryButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Width" Value="16" />
<Setter Property="Height" Value="22" />
<Setter Property="Foreground" Value="{DynamicResource CaptionButtonActiveIdleBrush}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="#01000000">
<!--Grid x:Name="HoverBackground" Opacity="0" ClipToBounds="False" IsHitTestVisible="False">
<Border Margin="0" Background="{DynamicResource PlexGlowToggleButtonHoverBackground}" BorderBrush="{DynamicResource PlexGlowToggleButtonHoverBorderBrush}" BorderThickness="2" RenderTransformOrigin="0.5,0.5" CornerRadius="0,8,0,0" ClipToBounds="False" IsHitTestVisible="False">
<Border.ToolTip>
<Fluent:ScreenTip x:Name="screenTip" Title="{Binding Source={x:Static Fluent:RibbonLocalization.Current}, Path=Localization.MinimizeButtonScreenTipTitle, Mode=OneWay}" Text="{Binding Source={x:Static Fluent:RibbonLocalization.Current}, Path=Localization.MinimizeButtonScreenTipText, Mode=OneWay}" />
</Border.ToolTip>
</Border>
<Border Background="Transparent" BorderBrush="{DynamicResource PlexGlowToggleButtonHoverBorderBrush}" BorderThickness="0,1,1,0" CornerRadius="0,8,0,0" Height="8" VerticalAlignment="Top" Margin="-100,-1,0,1" IsHitTestVisible="False">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="Transparent"/>
<GradientStop Offset="1" Color="White"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<Border Background="{DynamicResource PlexGlowToggleButtonHoverBorderBrush}" BorderBrush="Transparent" BorderThickness="0" Height="1" VerticalAlignment="Bottom" Margin="-100,0,0,0" IsHitTestVisible="False">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="Transparent"/>
<GradientStop Offset="1" Color="White"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
</Grid-->
<Grid UseLayoutRounding="True">
<Grid.Effect>
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3"
BlurRadius="10" Opacity="0.5" />
</Grid.Effect>
<Path x:Name="iconImage" Fill="{TemplateBinding Foreground}" Data="M 0 0 L 4 5 L 8 0 Z" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="True"/>
<!--Path x:Name="iconImageChecked" Fill="{DynamicResource CaptionButtonActiveIdleBrush}" Stroke="{DynamicResource CaptionButtonActiveIdleBrush}" StrokeThickness="1" Data="M 0 0 L 4 5 L 8 0 Z" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="True" Visibility="Collapsed"/-->
</Grid>
</Grid>
<ControlTemplate.Triggers>
<!--Trigger Property="IsPressed" Value="True">
<Setter Property="Visibility" TargetName="iconImage" Value="Collapsed" />
<Setter Property="Visibility" TargetName="iconImageChecked" Value="Visible" />
<Setter Property="Title" TargetName="screenTip" Value="{Binding Source={x:Static Fluent:RibbonLocalization.Current}, Path=Localization.ExpandButtonScreenTipTitle , Mode=OneWay}" />
<Setter Property="Text" TargetName="screenTip" Value="{Binding Source={x:Static Fluent:RibbonLocalization.Current}, Path=Localization.ExpandButtonScreenTipText , Mode=OneWay}" />
</Trigger-->
<Trigger Property="IsMouseOver" Value="True">
<!--Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions-->
<Setter Property="Foreground" Value="{DynamicResource CaptionButtonActiveHoverBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="NavigationUpButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Width" Value="16" />
<Setter Property="Height" Value="22" />
<Setter Property="Foreground" Value="{DynamicResource CaptionButtonActiveIdleBrush}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Margin" Value="5,0,0,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="#01000000">
<Grid UseLayoutRounding="True">
<Grid.Effect>
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="10" Opacity="0.5" />
</Grid.Effect>
<Path x:Name="iconImage" Fill="{TemplateBinding Foreground}" Data="M 0 6 L 6 0 L 12 6 L 8 6 L 8 16 L 4 16 L 4 6 Z" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="True"/>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource CaptionButtonActiveHoverBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="NavigationSearchBoxStyle" TargetType="{x:Type TextBox}">
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
<Setter Property="FocusVisualStyle" Value="{DynamicResource PlexFocusVisualStyle}" />
<Setter Property="AllowDrop" Value="true" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Padding" Value="5,0" />
<Setter Property="Height" Value="19"/>
<Setter Property="Foreground" Value="{DynamicResource AddressBoxForegroundBrush}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBoxBase}">
<Border Name="Border" CornerRadius="0,9.5,9.5,0" BorderThickness="0,1,1,1" BorderBrush="{DynamicResource AddressBoxBorderBrush}">
<Border CornerRadius="0,8.5,8.5,0" BorderThickness="0,1,1,1" BorderBrush="{DynamicResource AddressBoxSecondaryBorderBrush}" Background="{DynamicResource AddressBoxSecondaryBackgroundBrush}">
<Grid>
<Border x:Name="IdleFill" CornerRadius="0,7.5,7.5,0" Opacity="1" Background="{DynamicResource AddressBoxIdleFillBackgroundBrush}"/>
<Border x:Name="HoverFill" CornerRadius="{Binding Path=CornerRadius, ElementName=IdleFill}" Opacity="0" Background="{DynamicResource AddressBoxHoverFillBackgroundBrush}"/>
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" TextBlock.Foreground="{TemplateBinding Foreground}" Foreground="{TemplateBinding Foreground}" />
</Grid>
</Border>
</Border>
<ControlTemplate.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="True" />
<Condition Property="IsFocused" Value="False" />
</MultiTrigger.Conditions>
<MultiTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverFill" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</MultiTrigger.EnterActions>
<MultiTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverFill" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</MultiTrigger.ExitActions>
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="NavigationButtonsContainerStyle" TargetType="{x:Type StackPanel}">
<!--Setter Property="Width" Value="100"/-->
<Setter Property="Height" Value="34"/>
<Setter Property="Margin" Value="15,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Background">
<Setter.Value>
<VisualBrush AlignmentX="Left" Stretch="Uniform">
<VisualBrush.Visual>
<!--Grid Background="#01000000" Width="100" Height="34"-->
<Path Width="50">
<Path.RenderTransform>
<ScaleTransform ScaleX="0.9625"/>
</Path.RenderTransform>
<!--HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="56"-->
<Path.Data>
<PathGeometry Figures="m 12.327807 289.81714 c -5.4680527 0 -4.8553965 -1.76066 -7.9846772 -1.77066 -2.1058022 -0.0505 -4.30972111 1.76754 -4.3097212 4.45553 -8e-8 2.68799 2.2039189 4.50606 4.3097212 4.45553 3.1292805 -0.01 2.5166243 -1.77066 7.9846772 -1.77066 1.899459 0.0335 3.240643 -1.12201 3.240643 -2.68487 0 -1.56286 -1.341184 -2.71837 -3.240643 -2.68487 z" FillRule="NonZero"/>
</Path.Data>
<Path.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#20000000" />
<GradientStop Offset="1" Color="#60FFFFFF" />
</LinearGradientBrush>
</Path.Fill>
</Path>
<!--/Grid-->
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</Style>
<!--#endregion Navigation Bar Styles-->
<!--#region Main Content Styles-->
<Style x:Key="CurrentDirectoryListViewStyle" TargetType="{x:Type ListView}">
<Setter Property="Panel.ZIndex" Value="-100"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="GridView.AllowsColumnReorder" Value="True"/>
<Setter Property="Foreground" Value="{DynamicResource TextBoxForegroundBrush}"/>
<Style.Resources>
<!--Style x:Key="CurrentDirItemStyle" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource CurrentDirectoryListViewItemStyle}"/-->
</Style.Resources>
<Style.Triggers>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="Icons">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type disk:DiskItem}">
<DataTemplate.Resources>
<!--Style x:Key="{x:Type TextBlock}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{DynamicResource TextBoxForegroundBrush}"/>
</Style-->
</DataTemplate.Resources>
<StackPanel Orientation="Vertical">
<!--Width="52" MinHeight="52"-->
<!--StackPanel.ContextMenu>
<ui:TouchableContextMenu>
<MenuItem Header="Open"/>
<MenuItem Header="Properties"/>
</ui:TouchableContextMenu>
</StackPanel.ContextMenu-->
<Rectangle HorizontalAlignment="Center" Width="{Binding IconSize, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Height="{Binding IconSize, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Fill="{Binding ItemExtraLargeIcon, Converter={StaticResource IconToImageBrushConverter}, ConverterParameter='48'}" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.EdgeMode="Aliased"/>
<!--Width="48" Height="48"-->
<Grid Width="{Binding IconSize, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}">
<TextBlock Text="{Binding ItemDisplayName}" HorizontalAlignment="Stretch" TextAlignment="Center" TextBlock.Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" TextWrapping="Wrap" MaxHeight="44"/>
</Grid>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<WrapPanel IsItemsHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}" KeyboardNavigation.DirectionalNavigation="Local"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="Details">
<!--Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<StackPanel IsItemsHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}" Orientation="Vertical" KeyboardNavigation.DirectionalNavigation="Local"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter-->
<Setter Property="View">
<Setter.Value>
<GridView>
<GridViewColumn Header="Name" Width="160" DisplayMemberBinding="{Binding ItemDisplayName}"/>
<GridViewColumn Header="Type" Width="120" DisplayMemberBinding="{Binding ItemCategory}"/>
<GridViewColumn Header="Size" Width="80" DisplayMemberBinding="{Binding FriendlyItemSize}"/>
</GridView>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="Tiles">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type disk:DiskItem}">
<DockPanel Width="240" Height="42">
<Rectangle HorizontalAlignment="Center" Width="32" Height="32" Fill="{Binding ItemExtraLargeIcon, Converter={StaticResource IconToImageBrushConverter}, ConverterParameter='32'}" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.EdgeMode="Aliased" DockPanel.Dock="Left"/>
<TextBlock Text="{Binding ItemDisplayName}" HorizontalAlignment="Left" VerticalAlignment="Center" TextAlignment="Left" TextBlock.Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" TextWrapping="Wrap" Margin="5,0,0,0"/>
</DockPanel>
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<WrapPanel IsItemsHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}" KeyboardNavigation.DirectionalNavigation="Local"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="List">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type disk:DiskItem}">
<StackPanel Orientation="Horizontal" Height="16">
<!--StackPanel.ContextMenu>
<ui:TouchableContextMenu>
<MenuItem Header="Open"/>
<MenuItem Header="Properties"/>
</ui:TouchableContextMenu>
</StackPanel.ContextMenu-->
<Rectangle HorizontalAlignment="Center" Width="16" Height="16" Fill="{Binding ItemSmallIcon, Converter={StaticResource IconToImageBrushConverter}, ConverterParameter='16'}" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.EdgeMode="Aliased"/>
<TextBlock Text="{Binding ItemDisplayName}" HorizontalAlignment="Left" TextAlignment="Center" TextBlock.Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Margin="5,0,0,0"/>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
<WrapPanel IsItemsHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}" Orientation="Vertical" KeyboardNavigation.DirectionalNavigation="Local"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="Content">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type disk:DiskItem}">
<Grid Height="32">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32"/>
<ColumnDefinition/>
<ColumnDefinition Width="192"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<!--Grid.ContextMenu>
<ui:TouchableContextMenu>
<MenuItem Header="Open"/>
<MenuItem Header="Properties"/>
</ui:TouchableContextMenu>
</Grid.ContextMenu-->
<Rectangle HorizontalAlignment="Center" Width="32" Height="32" Fill="{Binding ItemLargeIcon, Converter={StaticResource IconToImageBrushConverter}, ConverterParameter='32'}" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.EdgeMode="Aliased" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"/>
<TextBlock Text="{Binding ItemDisplayName}" HorizontalAlignment="Left" TextAlignment="Center" TextBlock.Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="0"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1">
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Opacity="0.5" Margin="0,0,5,0">Type:</TextBlock>
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Text="{Binding FriendlyItemType}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Column="2" Grid.Row="0">
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Opacity="0.5" Margin="0,0,5,0">Date modified:</TextBlock>
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Text="NYI"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Column="2" Grid.Row="1">
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Opacity="0.5" Margin="0,0,5,0">Size:</TextBlock>
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListView}}}" Text="{Binding FriendlyItemSize}"/>
</StackPanel>
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<StackPanel IsItemsHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}" Orientation="Vertical" KeyboardNavigation.DirectionalNavigation="Local"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
<ControlTemplate x:Key="CurrentDirectoryListViewItemControlTemplate" TargetType="{x:Type ListViewItem}">
<Grid>
<Border x:Name="SelectedBackground" Background="Transparent" BorderBrush="{DynamicResource ToolbarButtonHoverPrimaryBorderBrush}" BorderThickness="1" CornerRadius="4" Opacity="0">
<Border BorderThickness="1" CornerRadius="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{DynamicResource ToolbarButtonHoverSecondaryBorderBrush}">
<Border BorderThickness="0,1,0,2" CornerRadius="2" Background="{DynamicResource ToolbarToggleButtonSelectedBackground}" BorderBrush="{DynamicResource ToolbarButtonHoverTertiaryBorderBrush}"/>
</Border>
</Border>
<Border x:Name="HoverBackground" Background="Transparent" BorderBrush="{DynamicResource ToolbarButtonHoverPrimaryBorderBrush}" BorderThickness="1" CornerRadius="4" Opacity="0">
<Border BorderThickness="1" CornerRadius="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{DynamicResource ToolbarButtonHoverSecondaryBorderBrush}">
<Border BorderThickness="0,1,0,2" CornerRadius="2" Background="{DynamicResource ToolbarButtonHoverTertiaryBackgroundBrush}" BorderBrush="{DynamicResource ToolbarButtonHoverTertiaryBorderBrush}"/>
</Border>
</Border>
<Grid Background="{TemplateBinding Background}" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<ContentPresenter x:Name="PART_ContentPresenter" Margin="0" Visibility="Hidden"/>
<DockPanel>
<Grid x:Name="SelectorCheckBoxGrid" VerticalAlignment="Top">
<CheckBox x:Name="SelectorCheckBox" IsThreeState="False" IsChecked="{Binding Path=IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}" Visibility="Collapsed" DockPanel.Dock="Left"/>
</Grid>
<GridViewRowPresenter x:Name="PART_GridViewRowPesenter" Visibility="Visible" />
</DockPanel>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="GridView.ColumnCollection" Value="{x:Null}">
<Setter TargetName="PART_ContentPresenter" Property="Visibility" Value="Visible"/>
<Setter TargetName="PART_GridViewRowPesenter" Property="Visibility" Value="Hidden"/>
</Trigger>
<DataTrigger Binding="{Binding ShowItemCheckboxes, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="True">
<Setter TargetName="SelectorCheckBox" Property="Visibility" Value="Visible"/>
</DataTrigger>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="Details">
<Setter TargetName="SelectorCheckBoxGrid" Property="VerticalAlignment" Value="Center"/>
</DataTrigger>
<DataTrigger Binding="{Binding CurrentView, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type mgrbase:FileManagerBase}}}" Value="List">
<Setter TargetName="SelectorCheckBoxGrid" Property="VerticalAlignment" Value="Center"/>
</DataTrigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="False"/>
<Condition Property="IsSelected" Value="False"/>
</MultiTrigger.Conditions>
<Setter TargetName="SelectorCheckBoxGrid" Property="Visibility" Value="Hidden"/>
</MultiTrigger>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.0625" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonHoverForegroundBrush}" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonHoverForegroundBrush}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!--Style x:Key="CurrentDirectoryListViewItemStyle" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource {x:Type ListViewItem}}">
<Setter Property="Margin" Value="2"/>
<Setter Property="Padding" Value="3"/>
<Setter Property="Template">
<Setter.Value>
</Setter.Value>
</Setter>
</Style-->
<Style x:Key="FavoritesTreeViewStyle" TargetType="{x:Type TreeView}" BasedOn="{StaticResource MountedTreeViewStyle}"/>
<Style x:Key="FavoritesItemHeaderStyle" TargetType="{x:Type Control}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Control}">
<StackPanel Orientation="Horizontal" Height="16" ClipToBounds="False">
<ContentControl>
<ContentControl.Effect>
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="10" Opacity="0.5" />
</ContentControl.Effect>
<Path Data="M 3 16 L 8 12 L 13 16 L 11 9 L 16 6 L 10 6 L 8 0 L 6 6 L 0 6 L 5 9" Fill="{DynamicResource EmblemPathFillBrush}" Stroke="{DynamicResource EmblemPathStrokeBrush}" StrokeThickness="1" UseLayoutRounding="True"/>
<!--ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10,0,0,0"/-->
</ContentControl>
<TextBlock Margin="5,0,0,0">Favorites</TextBlock>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ComputerItemHeaderStyle" TargetType="{x:Type Control}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Control}">
<StackPanel Orientation="Horizontal" Height="16" ClipToBounds="False">
<!--Path Data="M 3 16 L 8 12 L 13 16 L 11 9 L 16 6 L 10 6 L 8 0 L 6 6 L 0 6 L 5 9" Fill="{DynamicResource EmblemPathFillBrush}" Stroke="{DynamicResource EmblemPathStrokeBrush}" StrokeThickness="1" UseLayoutRounding="True">
<Path.Effect>
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="10" Opacity="0.5" />
</Path.Effect>
</Path-->
<Grid Width="16" Height="16">
<Grid.Effect>
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="10" Opacity="0.5" />
</Grid.Effect>
<Rectangle Width="4" Height="14" VerticalAlignment="Center" Fill="{DynamicResource EmblemPathFillBrush}" Stroke="{DynamicResource EmblemPathStrokeBrush}" StrokeThickness="1" UseLayoutRounding="True"/>
<Rectangle Width="4" Height="14" VerticalAlignment="Center" Fill="#36000000" StrokeThickness="0" UseLayoutRounding="True"/>
<Rectangle Height="10" VerticalAlignment="Top" Fill="{DynamicResource EmblemPathFillBrush}" Stroke="{DynamicResource EmblemPathStrokeBrush}" StrokeThickness="1" UseLayoutRounding="True"/>
<!--Rectangle.Effect>
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="10" Opacity="0.125" />
</Rectangle.Effect>
</Rectangle-->
<Rectangle Height="3" VerticalAlignment="Bottom" Fill="{DynamicResource EmblemPathFillBrush}" Stroke="{DynamicResource EmblemPathStrokeBrush}" StrokeThickness="1" UseLayoutRounding="True"/>
<Rectangle Height="3" VerticalAlignment="Bottom" Fill="#26000000" StrokeThickness="0" UseLayoutRounding="True"/>
</Grid>
<!--ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10,0,0,0"/-->
<TextBlock Margin="5,0,0,0">This PC</TextBlock>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<HierarchicalDataTemplate x:Key="NavigationPaneDataTemplate" DataType="{x:Type disk:DiskItem}">
<StackPanel Orientation="Horizontal" Height="16">
<Rectangle VerticalAlignment="Center" Width="16" Height="16" Fill="{Binding ItemSmallIcon, Converter={StaticResource IconToImageBrushConverter}, ConverterParameter='16'}" SnapsToDevicePixels="True" UseLayoutRounding="True" RenderOptions.EdgeMode="Aliased"/>
<ContentPresenter Content="{Binding ItemDisplayName}" RecognizesAccessKey="True" TextBlock.Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type TreeViewItem}}}" Margin="5,0,0,0">
<ContentPresenter.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextWrapping" Value="WrapWithOverflow"/>
</Style>
</ContentPresenter.Resources>
</ContentPresenter>
</StackPanel>
</HierarchicalDataTemplate>
<Style x:Key="DetailsPaneStyle" TargetType="{x:Type ContentControl}">
<Setter Property="Panel.ZIndex" Value="10"/>
<Setter Property="Background" Value="{DynamicResource MountedListViewBackgroundBrush}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContentControl}">
<Grid>
<Border CornerRadius="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
<Border.Effect>
<DropShadowEffect Color="Black" Direction="180" ShadowDepth="3" BlurRadius="10" Opacity="0.5" />
</Border.Effect>
</Border>
<ContentPresenter Content="{TemplateBinding Content}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DetailsPaneIconContainerStyle" TargetType="{x:Type ContentControl}">
<Setter Property="Height" Value="{Binding ActualWidth,RelativeSource={RelativeSource Mode=Self}}"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="10"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContentControl}">
<Grid>
<Border>
<ContentPresenter Content="{TemplateBinding Content}"/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="PreviewPaneStyle" TargetType="{x:Type ContentControl}">
<Setter Property="Background" Value="{DynamicResource MountedListViewBackgroundBrush}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContentControl}">
<Grid>
<Border CornerRadius="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
<Border.Effect>
<DropShadowEffect Color="Black" Direction="180" ShadowDepth="3" BlurRadius="10" Opacity="0.5" />
</Border.Effect>
</Border>
<ContentPresenter Content="{TemplateBinding Content}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<LinearGradientBrush x:Key="StatusBarIconPrimaryBrush" StartPoint="0,0" EndPoint="1,1">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="#FF587996"/>
<GradientStop Offset="1" Color="#FF6688A5"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
<LinearGradientBrush x:Key="StatusBarIconLightPrimaryBrush" StartPoint="0,0" EndPoint="1,1">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="#FF6EB5F5"/>
<GradientStop Offset="1" Color="#FFBDEBFF"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
<LinearGradientBrush x:Key="StatusBarIconDarkPrimaryBrush" StartPoint="0,0" EndPoint="1,1">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="#FF728CA8"/>
<GradientStop Offset="1" Color="#FFA6A6A8"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
<SolidColorBrush x:Key="StatusBarIconSecondaryBrush">#FF7F7F7F</SolidColorBrush>
<Style x:Key="StatusBarDetailsViewToggleButtonStyle" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToolbarToggleButtonStyle}">
<Setter Property="Width" Value="24"/>
<!--Setter Property="Height" Value="18"/-->
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Margin" Value="0,-10,0,-11"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Content">
<Setter.Value>
<UniformGrid Width="15" Height="15" Rows="3" Columns="3" SnapsToDevicePixels="True">
<Rectangle Fill="{DynamicResource StatusBarIconPrimaryBrush}" Margin="1"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarIconSecondaryBrush}"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarIconSecondaryBrush}" Margin="1,0"/>
<Rectangle Fill="{DynamicResource StatusBarIconDarkPrimaryBrush}" Margin="1"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarIconSecondaryBrush}"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarIconSecondaryBrush}" Margin="1,0"/>
<Rectangle Fill="{DynamicResource StatusBarIconPrimaryBrush}" Margin="1"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarIconSecondaryBrush}" Margin="0,0,1,0"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarIconSecondaryBrush}" Margin="0,0,1,0"/>
</UniformGrid>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Border x:Name="SelectedBackground" Background="Transparent" BorderBrush="{DynamicResource ToolbarButtonHoverPrimaryBorderBrush}" BorderThickness="1" CornerRadius="4,0,0,4" Opacity="0">
<Border BorderThickness="1" CornerRadius="3,0,0,3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{DynamicResource ToolbarButtonHoverSecondaryBorderBrush}">
<Border BorderThickness="0,1,0,2" CornerRadius="2,0,0,2" Background="{DynamicResource ToolbarToggleButtonSelectedBackground}" BorderBrush="{DynamicResource ToolbarButtonHoverTertiaryBorderBrush}"/>
</Border>
</Border>
<Border x:Name="HoverBackground" Background="Transparent" BorderBrush="{DynamicResource ToolbarButtonHoverPrimaryBorderBrush}" BorderThickness="1" CornerRadius="4,0,0,4" Opacity="0">
<Border BorderThickness="1" CornerRadius="3,0,0,3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{DynamicResource ToolbarButtonHoverSecondaryBorderBrush}">
<Border BorderThickness="0,1,0,2" CornerRadius="2,0,0,2" Background="{DynamicResource ToolbarButtonHoverTertiaryBackgroundBrush}" BorderBrush="{DynamicResource ToolbarButtonHoverTertiaryBorderBrush}"/>
</Border>
</Border>
<ContentControl Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Focusable="False" IsTabStop="False" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonHoverForegroundBrush}" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonHoverForegroundBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonDisabledForegroundBrush}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="StatusBarIconsViewToggleButtonStyle" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToolbarToggleButtonStyle}">
<Setter Property="Width" Value="24"/>
<!--Setter Property="Height" Value="18"/-->
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Margin" Value="0,-10,-5,-11"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Content">
<Setter.Value>
<Border Width="15" Height="12" Background="{DynamicResource StatusBarIconLightPrimaryBrush}" BorderBrush="{DynamicResource StatusBarIconSecondaryBrush}" BorderThickness="1">
<Path Data="M 0 0 L 5 2 L 10 3 L 12 5 L 0 5 Z" Fill="{DynamicResource StatusBarIconDarkPrimaryBrush}" VerticalAlignment="Bottom"/>
</Border>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Border x:Name="SelectedBackground" Background="Transparent" BorderBrush="{DynamicResource ToolbarButtonHoverPrimaryBorderBrush}" BorderThickness="1" CornerRadius="0,0,12,0" Opacity="0">
<Border BorderThickness="1" CornerRadius="0,0,11,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{DynamicResource ToolbarButtonHoverSecondaryBorderBrush}">
<Border BorderThickness="0,1,0,2" CornerRadius="0,0,10,0" Background="{DynamicResource ToolbarToggleButtonSelectedBackground}" BorderBrush="{DynamicResource ToolbarButtonHoverTertiaryBorderBrush}"/>
</Border>
</Border>
<Border x:Name="HoverBackground" Background="Transparent" BorderBrush="{DynamicResource ToolbarButtonHoverPrimaryBorderBrush}" BorderThickness="1" CornerRadius="0,0,12,0" Opacity="0">
<Border BorderThickness="1" CornerRadius="0,0,11,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{DynamicResource ToolbarButtonHoverSecondaryBorderBrush}">
<Border BorderThickness="0,1,0,2" CornerRadius="0,0,10,0" Background="{DynamicResource ToolbarButtonHoverTertiaryBackgroundBrush}" BorderBrush="{DynamicResource ToolbarButtonHoverTertiaryBorderBrush}"/>
</Border>
</Border>
<ContentControl Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Focusable="False" IsTabStop="False" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonHoverForegroundBrush}" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.125" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonHoverForegroundBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource ToolbarButtonDisabledForegroundBrush}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--Grid x:Key="StatusBarDetailsViewIcon" Width="15" Height="15" UseLayoutRounding="True" SnapsToDevicePixels="True">
<UniformGrid Rows="3" Columns="3">
<Rectangle Fill="{DynamicResource StatusBarDetailsViewIconThumbnailBrush}" Margin="1"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarDetailsViewIconLabelBrush}"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarDetailsViewIconLabelBrush}" Margin="1,0"/>
<Rectangle Fill="{DynamicResource StatusBarDetailsViewIconMiddleThumbnailBrush}" Margin="1"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarDetailsViewIconLabelBrush}"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarDetailsViewIconLabelBrush}" Margin="1,0"/>
<Rectangle Fill="{DynamicResource StatusBarDetailsViewIconThumbnailBrush}" Margin="1"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarDetailsViewIconLabelBrush}"/>
<Rectangle Height="1" VerticalAlignment="Center" Fill="{DynamicResource StatusBarDetailsViewIconLabelBrush}" Margin="1,0"/>
</UniformGrid>
</Grid-->
<!--#endregion Main Content Styles-->
<!--#region Main Ribbon Styles-->
<Style x:Key="{x:Type Fluent:Ribbon}" TargetType="{x:Type Fluent:Ribbon}">
<!--Setter Property="IsAutomaticCollapseEnabled" Value="False"/-->
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource SeparatorBackgroundBrush}" />
<!--Setter Property="FocusVisualStyle"
Value="{DynamicResource ControlStyleEmptyFocus}" /-->
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Fluent:FrameworkHelper.UseLayoutRounding" Value="True" />
<!--Setter Property="TitleBar" Value="{Binding TitleBar, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Fluent:IRibbonWindow}}, FallbackValue={x:Null}}" /-->
<!--Setter Property="QuickAccessToolBarHeight" Value="{Binding TitleBar.ActualHeight, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:IRibbonWindow}}, FallbackValue=23}" /-->
<Setter Property="QuickAccessToolBarHeight" Value="24" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Fluent:Ribbon}">
<ControlTemplate.Resources>
<!--Style BasedOn="{StaticResource MenuSeparatorStyle}" TargetType="{x:Type Separator}" />
<Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" BasedOn="{StaticResource MenuSeparatorStyle}" TargetType="{x:Type Separator}" /-->
<!--Style BasedOn="{StaticResource FluentRibbonDefaultContextMenuStyle}" TargetType="{x:Type ContextMenu}" /-->
</ControlTemplate.Resources>
<Grid>
<Grid x:Name="PART_LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Fluent:RibbonTabControl x:Name="PART_RibbonTabControl" Menu="{TemplateBinding Menu}" ContentHeight="{TemplateBinding ContentHeight}" ContextMenu="{Binding ContextMenu, ElementName=PART_LayoutRoot}" IsMouseWheelScrollingEnabled="{TemplateBinding IsMouseWheelScrollingEnabled}" /><!--AreTabHeadersVisible="{TemplateBinding AreTabHeadersVisible}" IsToolBarVisible="{TemplateBinding IsToolBarVisible}"-->
<ContentControl x:Name="quickAccessToolBarHolder" Grid.Row="1" Height="{TemplateBinding QuickAccessToolBarHeight}" HorizontalAlignment="Left">
<Fluent:QuickAccessToolBar x:Name="PART_QuickAccessToolBar" ShowAboveRibbon="{Binding ShowQuickAccessToolBarAboveRibbon, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" IsMenuDropDownVisible="{TemplateBinding IsQuickAccessToolBarMenuDropDownVisible}" HorizontalAlignment="Left" Focusable="False"/>
</ContentControl>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsQuickAccessToolBarVisible" Value="False">
<Setter Property="Visibility" TargetName="quickAccessToolBarHolder" Value="Collapsed" />
<Setter Property="Visibility" TargetName="PART_QuickAccessToolBar" Value="Collapsed" />
</Trigger>
<Trigger Property="IsCollapsed" Value="True">
<!--Setter Property="Visibility" TargetName="PART_RibbonTabControl" Value="Collapsed" /-->
<Setter Property="Visibility" TargetName="quickAccessToolBarHolder" Value="Collapsed" />
</Trigger>
<!--Trigger Property="QuickAccessToolBar" Value="{x:Null}">
<Setter Property="Content" TargetName="quickAccessToolBarHolder" Value="{x:Null}" />
<Setter Property="Visibility" TargetName="quickAccessToolBarHolder" Value="Collapsed" />
</Trigger-->
<Trigger Property="ShowQuickAccessToolBarAboveRibbon" Value="True">
<Setter Property="Content" TargetName="quickAccessToolBarHolder" Value="{x:Null}" />
<Setter Property="Visibility" TargetName="quickAccessToolBarHolder" Value="Collapsed" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="{x:Type Fluent:RibbonTabControl}" TargetType="{x:Type Fluent:RibbonTabControl}">
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Fluent:Ribbon}}}" />
<Setter Property="Focusable" Value="False" />
<Setter Property="ClipToBounds" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Fluent:RibbonTabControl}">
<ControlTemplate.Resources>
<Style TargetType="{x:Type ScrollViewer}">
<Setter Property="CanContentScroll" Value="True" />
<Setter Property="HorizontalScrollBarVisibility" Value="Auto" />
<Setter Property="VerticalScrollBarVisibility" Value="Disabled" />
<Setter Property="PanningMode" Value="HorizontalOnly" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid x:Name="Grid" Background="{TemplateBinding Background}" IsHitTestVisible="True">
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Width="{TemplateBinding ActualWidth}" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" IsHitTestVisible="True" ClipToBounds="False" />
<RepeatButton Command="{x:Static ScrollBar.LineLeftCommand}" CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Focusable="false" HorizontalAlignment="Left" Width="13" Height="Auto" VerticalAlignment="Stretch" Style="{DynamicResource ScrollButtonStyle}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}">
<Path Fill="Black" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="3" Height="5" Data="M0,0L1,1 1,-1z" />
</RepeatButton>
<RepeatButton Command="{x:Static ScrollBar.LineRightCommand}" CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Focusable="false" HorizontalAlignment="Right" Width="13" Height="Auto" VerticalAlignment="Stretch" Style="{DynamicResource ScrollButtonStyle}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}">
<Path Fill="Black" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="3" Height="5" Data="M1,0L0,1 0,-1z" />
</RepeatButton>
<Rectangle x:Name="bottomSeparator" Height="1" VerticalAlignment="Bottom" Fill="{DynamicResource SeparatorHorizontalBackgroundBrush}"/>
</Grid>
<ControlTemplate.Triggers>
<!--Trigger Property="ComputedHorizontalScrollBarVisibility" Value="Hidden">
</Trigger-->
<DataTrigger Binding="{Binding IsMinimized, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Fluent:RibbonTabControl}}}" Value="True">
<Setter TargetName="bottomSeparator" Property="Visibility" Value="Hidden"/>
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ControlTemplate.Resources>
<Grid x:Name="ContentGrid" Background="{TemplateBinding Background}" KeyboardNavigation.TabNavigation="Local" Height="Auto" VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition x:Name="rowDefinition" MinHeight="0" MaxHeight="{TemplateBinding ContentHeight}" />
<RowDefinition x:Name="rowDefinition1" MinHeight="0" MaxHeight="{TemplateBinding ContentGapHeight}" />
</Grid.RowDefinitions>
<Border x:Name="border" HorizontalAlignment="Stretch" Margin="0,-1,0,0" Width="Auto" BorderThickness="0" Grid.Row="1" BorderBrush="Transparent" />
<Border x:Name="mainContentControlBorder" Height="94" HorizontalAlignment="Stretch" Margin="1,0,1,0" Grid.Row="1" Grid.RowSpan="1" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" TextElement.Foreground="{DynamicResource ToolbarButtonForegroundBrush}" KeyboardNavigation.TabNavigation="Local" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabIndex="2">
<ContentControl x:Name="mainContentControl" Margin="0" Focusable="False">
<ContentPresenter ContentSource="SelectedContent" x:Name="PART_SelectedContentPresenter" HorizontalAlignment="Stretch" Margin="0" />
</ContentControl>
</Border>
<Border Margin="0" VerticalAlignment="Stretch" Grid.Row="2" Background="{Binding Path=SelectedItem.BorderBrush, RelativeSource={RelativeSource TemplatedParent}}" />
<Grid x:Name="TabsGrid" Background="Transparent" TextElement.Foreground="{DynamicResource ToolbarButtonForegroundBrush}" HorizontalAlignment="Stretch" Width="Auto" Margin="0" Grid.Row="0" KeyboardNavigation.TabIndex="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Fluent:WindowSteeringHelperControl Grid.ColumnSpan="4" />
<ContentPresenter Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ContentSource="Menu" />
<Fluent:RibbonScrollViewer Grid.Column="1" HorizontalAlignment="Stretch" Margin="0" Width="Auto" Style="{DynamicResource RibbonTabScrollViewer}" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" IsHitTestVisible="True" IsTabStop="False">
<Fluent:RibbonTabsContainer x:Name="PART_TabsContainer" IsItemsHost="True" Height="Auto" HorizontalAlignment="Stretch" Margin="0" KeyboardNavigation.TabIndex="1" />
</Fluent:RibbonScrollViewer>
<StackPanel HorizontalAlignment="Right" Grid.Column="3" Orientation="Horizontal" Margin="0,0,0,-1">
<Grid>
<Image x:Name="image" Width="22" Height="22" Stretch="None" Visibility="Collapsed" />