Skip to content

Commit c41ebc0

Browse files
committed
Code Quality: Used one-way binding mode for automation properties
1 parent 4041139 commit c41ebc0

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}"
271-
AutomationProperties.Name="{x:Bind Commands.NavigateBack.Label}"
270+
AutomationProperties.FullDescription="{x:Bind Commands.NavigateBack.Description, Mode=OneWay}"
271+
AutomationProperties.Name="{x:Bind Commands.NavigateBack.Label, Mode=OneWay}"
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}"
301-
AutomationProperties.Name="{x:Bind Commands.NavigateForward.Label}"
300+
AutomationProperties.FullDescription="{x:Bind Commands.NavigateForward.Description, Mode=OneWay}"
301+
AutomationProperties.Name="{x:Bind Commands.NavigateForward.Label, Mode=OneWay}"
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}"
331-
AutomationProperties.Name="{x:Bind Commands.NavigateUp.Label}"
330+
AutomationProperties.FullDescription="{x:Bind Commands.NavigateUp.Description, Mode=OneWay}"
331+
AutomationProperties.Name="{x:Bind Commands.NavigateUp.Label, Mode=OneWay}"
332332
Command="{x:Bind Commands.NavigateUp, Mode=OneWay}"
333333
IsEnabled="{x:Bind Commands.NavigateUp.IsExecutable, Mode=OneWay}"
334334
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -340,7 +340,7 @@
340340
x:Name="Refresh"
341341
AccessKey="R"
342342
AccessKeyInvoked="Button_AccessKeyInvoked"
343-
AutomationProperties.Name="{x:Bind Commands.RefreshItems.Label}"
343+
AutomationProperties.Name="{x:Bind Commands.RefreshItems.Label, Mode=OneWay}"
344344
Command="{x:Bind Commands.RefreshItems, Mode=OneWay}"
345345
IsEnabled="{x:Bind Commands.RefreshItems.IsExecutable, Mode=OneWay}"
346346
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -353,7 +353,7 @@
353353
x:Load="{x:Bind ViewModel.ShowHomeButton, Mode=OneWay}"
354354
AccessKey="H"
355355
AccessKeyInvoked="Button_AccessKeyInvoked"
356-
AutomationProperties.Name="{x:Bind Commands.NavigateHome.Label}"
356+
AutomationProperties.Name="{x:Bind Commands.NavigateHome.Label, Mode=OneWay}"
357357
Command="{x:Bind Commands.NavigateHome, Mode=OneWay}"
358358
IsEnabled="{x:Bind Commands.NavigateHome.IsExecutable, Mode=OneWay}"
359359
Style="{StaticResource AddressToolbarButtonStyle}"
@@ -478,7 +478,7 @@
478478
x:Name="ShowSearchButton"
479479
AccessKey="I"
480480
AccessKeyInvoked="Button_AccessKeyInvoked"
481-
AutomationProperties.Name="{x:Bind Commands.Search.Label}"
481+
AutomationProperties.Name="{x:Bind Commands.Search.Label, Mode=OneWay}"
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}"
498+
AutomationProperties.Name="{x:Bind Commands.ToggleShelfPane.Label, Mode=OneWay}"
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}"
612+
AutomationProperties.Name="{x:Bind Commands.OpenReleaseNotes.Label, Mode=OneWay}"
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)