Skip to content

Commit d873044

Browse files
committed
Replace Visibility with x:Load
1 parent a2a9085 commit d873044

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Files.App/UserControls/InnerNavigationToolbar.xaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,23 +1164,25 @@
11641164

11651165
<!-- Adaptive Layout -->
11661166
<TextBlock
1167+
x:Name="AdaptiveLayoutTextBlock"
11671168
Grid.Row="2"
11681169
Grid.Column="0"
11691170
VerticalAlignment="Center"
1170-
Text="{x:Bind Commands.LayoutAdaptive.Label}"
1171-
Visibility="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}" />
1171+
x:Load="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}"
1172+
Text="{x:Bind Commands.LayoutAdaptive.Label}" />
11721173

11731174
<ToggleSwitch
1175+
x:Name="AdaptiveLayoutToggleSwitch"
11741176
Grid.Row="2"
11751177
Grid.Column="1"
11761178
HorizontalAlignment="Right"
1179+
x:Load="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}"
11771180
AutomationProperties.Name="{x:Bind Commands.LayoutAdaptive.AutomationName}"
11781181
IsEnabled="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}"
11791182
IsOn="{x:Bind Commands.LayoutAdaptive.IsOn, Mode=TwoWay}"
11801183
Rotation="1"
11811184
Style="{StaticResource RightAlignedToggleSwitchStyle}"
1182-
ToolTipService.ToolTip="{x:Bind Commands.LayoutAdaptive.LabelWithHotKey, Mode=OneWay}"
1183-
Visibility="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}" />
1185+
ToolTipService.ToolTip="{x:Bind Commands.LayoutAdaptive.LabelWithHotKey, Mode=OneWay}" />
11841186
</Grid>
11851187

11861188
</StackPanel>

0 commit comments

Comments
 (0)