-
Notifications
You must be signed in to change notification settings - Fork 2
/
BasePage.xaml
612 lines (606 loc) · 46.3 KB
/
BasePage.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
<Page
x:Class="Rich_Text_Editor.BasePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Rich_Text_Editor"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:primitiveContract7Present="using:Microsoft.UI.Xaml.Controls.Primitives?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)"
d:Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
mc:Ignorable="d">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="tabColor" Color="#99FFFFFF" />
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="tabColor" Color="#26535353" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<Style x:Key="TabViewCloseButtonStyle" TargetType="Button">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="FontFamily" Value="{ThemeResource SymbolThemeFontFamily}" />
<Setter Property="FontSize" Value="{ThemeResource TabViewItemHeaderCloseFontSize}" />
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="Width" Value="{ThemeResource TabViewItemHeaderCloseButtonWidth}" />
<Setter Property="Height" Value="{ThemeResource TabViewItemHeaderCloseButtonHeight}" />
<Setter Property="Background" Value="{ThemeResource TabViewItemHeaderCloseButtonBackground}" />
<Setter Property="Foreground" Value="{ThemeResource TabViewItemHeaderCloseButtonForeground}" />
<Setter Property="FocusVisualMargin" Value="-3" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<ContentPresenter
x:Name="ContentPresenter"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
AutomationProperties.AccessibilityView="Raw"
Background="{TemplateBinding Background}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
CornerRadius="3,3,3,3">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="PointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TabViewItemHeaderCloseButtonBackgroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TabViewItemHeaderCloseButtonForegroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Pressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TabViewItemHeaderCloseButtonBackgroundPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TabViewItemHeaderCloseButtonForegroundPressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</ContentPresenter>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="TabViewStyle1" TargetType="muxc:TabView">
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Padding" Value="{ThemeResource TabViewHeaderPadding}" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="muxc:TabView">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="44" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid
x:Name="TabContainerGrid"
Margin="119,0,0,0"
Padding="-123,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="LeftContentColumn" Width="Auto" />
<ColumnDefinition
x:Name="TabColumn"
Width="Auto"
MinWidth="10" />
<ColumnDefinition x:Name="AddButtonColumn" Width="Auto" />
<ColumnDefinition x:Name="RightContentColumn" Width="*" />
</Grid.ColumnDefinitions>
<ContentPresenter
x:Name="LeftContentPresenter"
Grid.Column="0"
Content="{TemplateBinding TabStripHeader}"
ContentTemplate="{TemplateBinding TabStripHeaderTemplate}" />
<primitiveContract7Present:TabViewListView
x:Name="TabListView"
Grid.Column="1"
Padding="{TemplateBinding Padding}"
AllowDrop="{TemplateBinding AllowDropTabs}"
CanDragItems="{TemplateBinding CanDragTabs}"
CanReorderItems="{TemplateBinding CanReorderTabs}"
ItemTemplate="{TemplateBinding TabItemTemplate}"
ItemTemplateSelector="{TemplateBinding TabItemTemplateSelector}"
ItemsSource="{TemplateBinding TabItemsSource}" />
<Border
Grid.Column="2"
Width="29"
Height="29"
Margin="0,4,0,0"
Padding="{ThemeResource TabViewItemAddButtonContainerPadding}"
VerticalAlignment="Center"
Visibility="{Binding IsAddTabButtonVisible, RelativeSource={RelativeSource Mode=TemplatedParent}}">
<Button
x:Name="AddButton"
Width="30"
Height="30"
Margin="-4,0,0,-4"
Padding="8"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="#00808080"
BorderThickness="0,0,0,0"
Command="{TemplateBinding AddTabButtonCommand}"
CommandParameter="{TemplateBinding AddTabButtonCommandParameter}"
CornerRadius="5,5,5,5"
FontSize="13"
HighContrastAdjustment="None"
IsTextScaleFactorEnabled="False"
UseLayoutRounding="False">
<Button.Content>
<Viewbox Width="13" Height="13">
<SymbolIcon Symbol="Add" />
</Viewbox>
</Button.Content>
<Button.BorderBrush>
<LinearGradientBrush MappingMode="Absolute" EndPoint="0,3">
<LinearGradientBrush.RelativeTransform>
<ScaleTransform CenterY="0.5" ScaleY="-1" />
</LinearGradientBrush.RelativeTransform>
<GradientStop Offset="0.33" Color="#29000000" />
<GradientStop Offset="1" Color="#19000000" />
</LinearGradientBrush>
</Button.BorderBrush>
</Button>
</Border>
<ContentPresenter
x:Name="RightContentPresenter"
Grid.Column="3"
HorizontalAlignment="Stretch"
Content="{TemplateBinding TabStripFooter}"
ContentTemplate="{TemplateBinding TabStripFooterTemplate}" />
</Grid>
<ContentPresenter x:Name="TabContentPresenter" Grid.Row="1" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="TabViewItemStyle1" TargetType="muxc:TabViewItem">
<Setter Property="Background" Value="{ThemeResource TabViewItemHeaderBackground}" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="MinHeight" Value="{ThemeResource TabViewItemMinHeight}" />
<Setter Property="BorderThickness" Value="{ThemeResource TabViewItemBorderThickness}" />
<Setter Property="BorderBrush" Value="{ThemeResource TabViewItemBorderBrush}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="muxc:TabViewItem">
<Grid
x:Name="LayoutRoot"
Height="35"
Margin="0,-1,0,0"
Padding="{TemplateBinding Padding}"
Background="#00B87171"
BorderThickness="1"
CornerRadius="4">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="LeftColumn" Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition x:Name="RightColumn" Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RenderTransform>
<ScaleTransform x:Name="LayoutRootScale" />
</Grid.RenderTransform>
<Path
x:Name="LeftRadiusRenderArc"
Width="4"
Height="4"
Margin="-4,0,0,0"
VerticalAlignment="Bottom"
x:Load="False"
Data="M4 0C4 1.19469 3.47624 2.26706 2.64582 3H0C1.65685 3 3 1.65685 3 0H4Z"
Fill="{ThemeResource CardStrokeColorDefault}"
Visibility="Collapsed" />
<Path
x:Name="LeftRadiusRenderTriangle"
Margin="-4,0,0,0"
VerticalAlignment="Bottom"
x:Load="False"
Data="M0 4H4V0C4 2.20914 2.20914 4 0 4Z"
Fill="{ThemeResource TabViewItemHeaderBackgroundSelected}"
Visibility="Collapsed" />
<Path
x:Name="RightRadiusRenderArc"
Grid.Column="2"
Width="4"
Height="4"
Margin="0,0,-4,0"
VerticalAlignment="Bottom"
x:Load="False"
Data="M0 0C0 1.19469 0.523755 2.26706 1.35418 3H4C2.34315 3 1 1.65685 1 0H0Z"
Fill="{ThemeResource CardStrokeColorDefault}"
Visibility="Collapsed" />
<Path
x:Name="RightRadiusRenderTriangle"
Grid.Column="2"
Margin="0,0,-4,0"
VerticalAlignment="Bottom"
x:Load="False"
Data="M4 4H0V0C0 2.20914 1.79086 4 4 4Z"
Fill="{ThemeResource TabViewItemHeaderBackgroundSelected}"
Visibility="Collapsed" />
<Border
x:Name="TabSeparator"
Grid.Column="1"
Width="1"
Height="18"
Margin="0,8"
HorizontalAlignment="Right"
BorderBrush="{ThemeResource TabViewItemSeparator}"
BorderThickness="1" />
<Grid
x:Name="TabContainer"
Grid.Column="1"
Padding="{ThemeResource TabViewItemHeaderPadding}"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
Control.IsTemplateFocusTarget="True"
CornerRadius="4"
FocusVisualMargin="{TemplateBinding FocusVisualMargin}">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="IconColumn" Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Viewbox
x:Name="IconBox"
MaxWidth="{ThemeResource TabViewItemHeaderIconSize}"
MaxHeight="{ThemeResource TabViewItemHeaderIconSize}"
Margin="0,2,8,0">
<ContentControl
x:Name="IconControl"
Content="{Binding TabViewTemplateSettings.IconElement, RelativeSource={RelativeSource Mode=TemplatedParent}}"
FontSize="10"
Foreground="{ThemeResource TabViewItemIconForeground}"
HighContrastAdjustment="None"
IsTabStop="False" />
</Viewbox>
<ContentPresenter
x:Name="ContentPresenter"
Grid.Column="1"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Content="{Binding title}"
ContentTemplate="{TemplateBinding HeaderTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
FontSize="13"
FontWeight="{TemplateBinding FontWeight}"
Foreground="{ThemeResource TabViewItemHeaderForeground}"
HighContrastAdjustment="None"
OpticalMarginAlignment="TrimSideBearings" />
<Button
x:Name="CloseButton"
Grid.Column="2"
Width="24"
Height="24"
Margin="{ThemeResource TabViewItemHeaderCloseMargin}"
Padding="12,4"
FontSize="12"
HighContrastAdjustment="None"
IsTabStop="False"
IsTextScaleFactorEnabled="False"
Style="{ThemeResource TabViewCloseButtonStyle}">
<Button.Content>
<Viewbox Width="12" Height="12">
<SymbolIcon Symbol="Cancel" />
</Viewbox>
</Button.Content>
</Button>
</Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="PointerOver">
<VisualState.Setters>
<Setter Target="TabContainer.Background" Value="{ThemeResource TabViewItemHeaderBackgroundPointerOver}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundPointerOver}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewItemIconForegroundPointerOver}" />
<Setter Target="CloseButton.Background" Value="{ThemeResource TabViewItemHeaderPointerOverCloseButtonBackground}" />
<Setter Target="CloseButton.Foreground" Value="{ThemeResource TabViewItemHeaderPointerOverCloseButtonForeground}" />
<Setter Target="TabSeparator.Opacity" Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Pressed">
<VisualState.Setters>
<Setter Target="TabContainer.Background" Value="{ThemeResource tabColor}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundPressed}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewItemIconForegroundPressed}" />
<Setter Target="CloseButton.Background" Value="{ThemeResource TabViewItemHeaderPressedCloseButtonBackground}" />
<Setter Target="CloseButton.Foreground" Value="{ThemeResource TabViewItemHeaderPressedCloseButtonForeground}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Selected">
<VisualState.Setters>
<Setter Target="LayoutRoot.BorderBrush" Value="#26767676" />
<Setter Target="RightRadiusRenderArc.Visibility" Value="Visible" />
<Setter Target="RightRadiusRenderTriangle.Visibility" Value="Visible" />
<Setter Target="RightRadiusRenderTriangle.Fill" Value="{ThemeResource TabViewItemHeaderBackgroundSelected}" />
<Setter Target="LeftRadiusRenderArc.Visibility" Value="Visible" />
<Setter Target="LeftRadiusRenderTriangle.Visibility" Value="Visible" />
<Setter Target="LeftRadiusRenderTriangle.Fill" Value="{ThemeResource TabViewItemHeaderBackgroundSelected}" />
<Setter Target="TabContainer.Margin" Value="{ThemeResource TabViewSelectedItemHeaderMargin}" />
<Setter Target="TabContainer.BorderBrush" Value="{ThemeResource TabViewSelectedItemBorderBrush}" />
<Setter Target="TabContainer.Background" Value="{ThemeResource tabColor}" />
<Setter Target="TabContainer.Padding" Value="{ThemeResource TabViewSelectedItemHeaderPadding}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundSelected}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewItemIconForegroundSelected}" />
<Setter Target="CloseButton.Background" Value="{ThemeResource TabViewItemHeaderSelectedCloseButtonBackground}" />
<Setter Target="CloseButton.Foreground" Value="{ThemeResource TabViewItemHeaderSelectedCloseButtonForeground}" />
<Setter Target="LayoutRoot.Background" Value="Transparent" />
<Setter Target="ContentPresenter.FontWeight" Value="SemiBold" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="PointerOverSelected">
<VisualState.Setters>
<Setter Target="LayoutRoot.BorderBrush" Value="#26767676" />
<Setter Target="RightRadiusRenderArc.Visibility" Value="Visible" />
<Setter Target="RightRadiusRenderTriangle.Visibility" Value="Visible" />
<Setter Target="RightRadiusRenderTriangle.Fill" Value="{ThemeResource TabViewItemHeaderBackgroundSelected}" />
<Setter Target="LeftRadiusRenderArc.Visibility" Value="Visible" />
<Setter Target="LeftRadiusRenderTriangle.Visibility" Value="Visible" />
<Setter Target="LeftRadiusRenderTriangle.Fill" Value="{ThemeResource TabViewItemHeaderBackgroundSelected}" />
<Setter Target="TabContainer.Margin" Value="{ThemeResource TabViewSelectedItemHeaderMargin}" />
<Setter Target="TabContainer.BorderBrush" Value="{ThemeResource TabViewSelectedItemBorderBrush}" />
<Setter Target="TabContainer.Background" Value="{ThemeResource tabColor}" />
<Setter Target="TabContainer.Padding" Value="{ThemeResource TabViewSelectedItemHeaderPadding}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundSelected}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewItemIconForegroundSelected}" />
<Setter Target="CloseButton.Background" Value="{ThemeResource TabViewItemHeaderSelectedCloseButtonBackground}" />
<Setter Target="CloseButton.Foreground" Value="{ThemeResource TabViewItemHeaderSelectedCloseButtonForeground}" />
<Setter Target="LayoutRoot.Background" Value="Transparent" />
<Setter Target="ContentPresenter.FontWeight" Value="SemiBold" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="PressedSelected">
<VisualState.Setters>
<Setter Target="LayoutRoot.BorderBrush" Value="#26767676" />
<Setter Target="RightRadiusRenderArc.Visibility" Value="Visible" />
<Setter Target="RightRadiusRenderTriangle.Visibility" Value="Visible" />
<Setter Target="RightRadiusRenderTriangle.Fill" Value="{ThemeResource TabViewItemHeaderBackgroundSelected}" />
<Setter Target="LeftRadiusRenderArc.Visibility" Value="Visible" />
<Setter Target="LeftRadiusRenderTriangle.Visibility" Value="Visible" />
<Setter Target="LeftRadiusRenderTriangle.Fill" Value="{ThemeResource TabViewItemHeaderBackgroundSelected}" />
<Setter Target="TabContainer.Margin" Value="{ThemeResource TabViewSelectedItemHeaderMargin}" />
<Setter Target="TabContainer.BorderBrush" Value="{ThemeResource TabViewSelectedItemBorderBrush}" />
<Setter Target="TabContainer.Background" Value="{ThemeResource tabColor}" />
<Setter Target="TabContainer.Padding" Value="{ThemeResource TabViewSelectedItemHeaderPadding}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundSelected}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewItemIconForegroundSelected}" />
<Setter Target="CloseButton.Background" Value="{ThemeResource TabViewItemHeaderSelectedCloseButtonBackground}" />
<Setter Target="CloseButton.Foreground" Value="{ThemeResource TabViewItemHeaderSelectedCloseButtonForeground}" />
<Setter Target="LayoutRoot.Background" Value="Transparent" />
<Setter Target="ContentPresenter.FontWeight" Value="SemiBold" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="DisabledStates">
<VisualState x:Name="Enabled" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Target="TabContainer.Background" Value="{ThemeResource TabViewItemHeaderBackgroundDisabled}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundDisabled}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource TabViewItemHeaderForegroundDisabled}" />
<Setter Target="IconControl.Foreground" Value="{ThemeResource TabViewButtonForegroundDisabled}" />
<Setter Target="CloseButton.Background" Value="{ThemeResource TabViewItemHeaderDisabledCloseButtonBackground}" />
<Setter Target="CloseButton.Foreground" Value="{ThemeResource TabViewItemHeaderDisabledCloseButtonForeground}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="DataVirtualizationStates">
<VisualState x:Name="DataAvailable" />
<VisualState x:Name="DataPlaceholder" />
</VisualStateGroup>
<VisualStateGroup x:Name="ReorderHintStates">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:0.2" To="NoReorderHint" />
</VisualStateGroup.Transitions>
<VisualState x:Name="NoReorderHint" />
<VisualState x:Name="BottomReorderHint">
<Storyboard>
<DragOverThemeAnimation
Direction="Bottom"
ToOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
<VisualState x:Name="TopReorderHint">
<Storyboard>
<DragOverThemeAnimation
Direction="Top"
ToOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
<VisualState x:Name="RightReorderHint">
<Storyboard>
<DragOverThemeAnimation
Direction="Right"
ToOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
<VisualState x:Name="LeftReorderHint">
<Storyboard>
<DragOverThemeAnimation
Direction="Left"
ToOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="DragStates">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:0.2" To="NotDragging" />
</VisualStateGroup.Transitions>
<VisualState x:Name="NotDragging" />
<VisualState x:Name="Dragging">
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="Opacity"
To="{ThemeResource ListViewItemDragThemeOpacity}"
Duration="0" />
<DragItemThemeAnimation TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
<VisualState x:Name="DraggingTarget" />
<VisualState x:Name="MultipleDraggingPrimary" />
<VisualState x:Name="MultipleDraggingSecondary" />
<VisualState x:Name="DraggedPlaceholder" />
<VisualState x:Name="Reordering">
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="Opacity"
To="{ThemeResource ListViewItemReorderThemeOpacity}"
Duration="0:0:0.240" />
</Storyboard>
</VisualState>
<VisualState x:Name="ReorderingTarget">
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="Opacity"
To="{ThemeResource ListViewItemReorderTargetThemeOpacity}"
Duration="0:0:0.240" />
<DoubleAnimation
Storyboard.TargetName="LayoutRootScale"
Storyboard.TargetProperty="ScaleX"
To="{ThemeResource ListViewItemReorderTargetThemeScale}"
Duration="0:0:0.240" />
<DoubleAnimation
Storyboard.TargetName="LayoutRootScale"
Storyboard.TargetProperty="ScaleY"
To="{ThemeResource ListViewItemReorderTargetThemeScale}"
Duration="0:0:0.240" />
</Storyboard>
</VisualState>
<VisualState x:Name="MultipleReorderingPrimary" />
<VisualState x:Name="ReorderedPlaceholder">
<Storyboard>
<FadeOutThemeAnimation TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
<VisualState x:Name="DragOver">
<Storyboard>
<DropTargetItemThemeAnimation TargetName="LayoutRoot" />
</Storyboard>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="IconStates">
<VisualState x:Name="Icon" />
<VisualState x:Name="NoIcon">
<VisualState.Setters>
<Setter Target="IconBox.Visibility" Value="Collapsed" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="TabWidthModes">
<VisualState x:Name="StandardWidth" />
<VisualState x:Name="Compact">
<VisualState.Setters>
<Setter Target="IconBox.Margin" Value="0,0,0,0" />
<Setter Target="ContentPresenter.Visibility" Value="Collapsed" />
<Setter Target="IconColumn.Width" Value="{ThemeResource TabViewItemHeaderIconSize}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="CloseIconStates">
<VisualState x:Name="CloseButtonVisible" />
<VisualState x:Name="CloseButtonCollapsed">
<VisualState.Setters>
<Setter Target="CloseButton.Visibility" Value="Collapsed" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
<VisualStateGroup>
<VisualState x:Name="ForegroundNotSet" />
<VisualState x:Name="ForegroundSet">
<VisualState.Setters>
<Setter Target="IconControl.Foreground" Value="{Binding Foreground, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
<Setter Target="ContentPresenter.Foreground" Value="{Binding Foreground, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</Page.Resources>
<muxc:TabView
x:Name="Tabs"
Margin="0"
VerticalAlignment="Stretch"
x:FieldModifier="public"
AddTabButtonClick="TabView_AddTabButtonClick"
Background="{x:Null}"
Style="{StaticResource TabViewStyle1}"
CloseButtonOverlayMode="OnPointerOver"
TabCloseRequested="TabView_TabCloseRequested">
<muxc:TabView.KeyboardAccelerators>
<KeyboardAccelerator Key="Number1" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number2" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number3" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number4" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number5" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number6" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number7" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number8" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="Number9" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad1" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad2" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad3" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad4" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad5" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad6" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad7" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad8" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
<KeyboardAccelerator Key="NumberPad9" Modifiers="Control" Invoked="NavigateToNumberedTabKeyboardAccelerator_Invoked" />
</muxc:TabView.KeyboardAccelerators>
<muxc:TabView.TabStripHeader>
<Grid
x:Name="ShellTitlebarInset"
Width="4"
Background="Transparent" />
</muxc:TabView.TabStripHeader>
<muxc:TabView.TabStripFooter>
<RelativePanel>
<Grid
x:Name="CustomDragRegion"
Background="Transparent"
Canvas.ZIndex="1"
Margin="0"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignTopWithPanel="True"
RelativePanel.AlignBottomWithPanel="True"
RelativePanel.LeftOf="CompactOverlayBtn" />
<Button
x:Name="CompactOverlayBtn"
Margin="0,0,195,0"
Canvas.ZIndex="2"
Click="CompactOverlayBtn_Click"
RelativePanel.AlignRightWithPanel="True"
RelativePanel.AlignVerticalCenterWithPanel="True"
ToolTipService.ToolTip="Toggle overlay">
<FontIcon FontSize="16" Glyph="" />
</Button>
</RelativePanel>
</muxc:TabView.TabStripFooter>
</muxc:TabView>
</Page>