Skip to content

Commit 4041139

Browse files
committed
Code Quality: Organized binding modes
1 parent 229be37 commit 4041139

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Files.App/UserControls/AddressToolbar.xaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@
267267
x:Name="Back"
268268
AccessKey="B"
269269
AccessKeyInvoked="Button_AccessKeyInvoked"
270-
AutomationProperties.FullDescription="{x:Bind Commands.NavigateBack.Description, Mode=OneWay}"
271-
AutomationProperties.Name="{x:Bind Commands.NavigateBack.Label, Mode=OneWay}"
270+
AutomationProperties.FullDescription="{x:Bind Commands.NavigateBack.Description}"
271+
AutomationProperties.Name="{x:Bind Commands.NavigateBack.Label}"
272272
Command="{x:Bind Commands.NavigateBack, Mode=OneWay}"
273273
IsEnabled="{x:Bind Commands.NavigateBack.IsExecutable, Mode=OneWay}"
274274
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -297,8 +297,8 @@
297297
x:Name="Forward"
298298
AccessKey="F"
299299
AccessKeyInvoked="Button_AccessKeyInvoked"
300-
AutomationProperties.FullDescription="{x:Bind Commands.NavigateForward.Description, Mode=OneWay}"
301-
AutomationProperties.Name="{x:Bind Commands.NavigateForward.Label, Mode=OneWay}"
300+
AutomationProperties.FullDescription="{x:Bind Commands.NavigateForward.Description}"
301+
AutomationProperties.Name="{x:Bind Commands.NavigateForward.Label}"
302302
Command="{x:Bind Commands.NavigateForward, Mode=OneWay}"
303303
IsEnabled="{x:Bind Commands.NavigateForward.IsExecutable, Mode=OneWay}"
304304
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -327,8 +327,8 @@
327327
x:Name="Up"
328328
AccessKey="U"
329329
AccessKeyInvoked="Button_AccessKeyInvoked"
330-
AutomationProperties.FullDescription="{x:Bind Commands.NavigateUp.Description, Mode=OneWay}"
331-
AutomationProperties.Name="{x:Bind Commands.NavigateUp.Label, Mode=OneWay}"
330+
AutomationProperties.FullDescription="{x:Bind Commands.NavigateUp.Description}"
331+
AutomationProperties.Name="{x:Bind Commands.NavigateUp.Label}"
332332
Command="{x:Bind Commands.NavigateUp, Mode=OneWay}"
333333
IsEnabled="{x:Bind Commands.NavigateUp.IsExecutable, Mode=OneWay}"
334334
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -345,7 +345,7 @@
345345
IsEnabled="{x:Bind Commands.RefreshItems.IsExecutable, Mode=OneWay}"
346346
Style="{StaticResource AddressToolbarButtonStyle}"
347347
ToolTipService.ToolTip="{x:Bind Commands.RefreshItems.LabelWithHotKey, Mode=OneWay}">
348-
<FontIcon FontSize="14" Glyph="{x:Bind Commands.RefreshItems.Glyph.BaseGlyph}" />
348+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.RefreshItems.Glyph.BaseGlyph, Mode=OneWay}" />
349349
</Button>
350350

351351
<Button
@@ -358,7 +358,7 @@
358358
IsEnabled="{x:Bind Commands.NavigateHome.IsExecutable, Mode=OneWay}"
359359
Style="{StaticResource AddressToolbarButtonStyle}"
360360
ToolTipService.ToolTip="{x:Bind Commands.NavigateHome.LabelWithHotKey, Mode=OneWay}">
361-
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateHome.Glyph.BaseGlyph}" />
361+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateHome.Glyph.BaseGlyph, Mode=OneWay}" />
362362
</Button>
363363
</StackPanel>
364364

@@ -478,7 +478,7 @@
478478
x:Name="ShowSearchButton"
479479
AccessKey="I"
480480
AccessKeyInvoked="Button_AccessKeyInvoked"
481-
AutomationProperties.Name="{x:Bind Commands.Search.Label, Mode=OneWay}"
481+
AutomationProperties.Name="{x:Bind Commands.Search.Label}"
482482
Command="{x:Bind Commands.Search, Mode=OneWay}"
483483
IsEnabled="{x:Bind Commands.Search.IsExecutable, Mode=OneWay}"
484484
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -495,7 +495,7 @@
495495
Padding="0"
496496
x:Load="{x:Bind ViewModel.ShowShelfPaneToggleButton, Mode=OneWay}"
497497
AccessKeyInvoked="Button_AccessKeyInvoked"
498-
AutomationProperties.Name="{x:Bind Commands.ToggleShelfPane.Label, Mode=OneWay}"
498+
AutomationProperties.Name="{x:Bind Commands.ToggleShelfPane.Label}"
499499
Background="Transparent"
500500
BorderBrush="Transparent"
501501
IsChecked="{x:Bind Commands.ToggleShelfPane.IsOn, Mode=TwoWay}"
@@ -609,7 +609,7 @@
609609
x:Load="{x:Bind ViewModel.IsAppUpdated, Mode=OneWay}"
610610
AccessKey="2"
611611
AccessKeyInvoked="Button_AccessKeyInvoked"
612-
AutomationProperties.Name="{x:Bind Commands.OpenReleaseNotes.Label, Mode=OneWay}"
612+
AutomationProperties.Name="{x:Bind Commands.OpenReleaseNotes.Label}"
613613
Command="{x:Bind Commands.OpenReleaseNotes, Mode=OneWay}"
614614
Style="{StaticResource AddressToolbarButtonStyle}"
615615
ToolTipService.ToolTip="{x:Bind Commands.OpenReleaseNotes.LabelWithHotKey, Mode=OneWay}"

0 commit comments

Comments
 (0)