File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/Files.App/UserControls/MultitaskingControl Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 240
240
IsTabStop=" False" />
241
241
</Viewbox >
242
242
243
+ <ProgressRing
244
+ x:Name=" LoadingIndicator"
245
+ MaxWidth=" {ThemeResource TabViewItemHeaderIconSize}"
246
+ MaxHeight=" {ThemeResource TabViewItemHeaderIconSize}"
247
+ Margin=" {ThemeResource TabViewItemHeaderIconMargin}"
248
+ Visibility=" Collapsed" />
249
+
243
250
<!--
244
251
If we template bind the ContentPresenter's Content property to the TabViewItem.Header property
245
252
we unfortunately run into the following issue if the header is [null] or empty:
544
551
</VisualState .Setters>
545
552
</VisualState >
546
553
</VisualStateGroup >
554
+
555
+ <VisualStateGroup x : Name =" LoadingStates" >
556
+ <VisualState x : Name =" NotLoading" />
557
+ <VisualState x : Name =" Loading" >
558
+ <VisualState .Setters>
559
+ <Setter Target =" LoadingIndicator.Visibility" Value =" Visible" />
560
+ <Setter Target =" IconBox.Visibility" Value =" Collapsed" />
561
+ </VisualState .Setters>
562
+ </VisualState >
563
+ </VisualStateGroup >
547
564
</VisualStateManager .VisualStateGroups>
548
565
</Grid >
549
566
</ControlTemplate >
You can’t perform that action at this time.
0 commit comments