Skip to content

Commit 8f62bcb

Browse files
committed
Code Quality: Used one-time binding mode for glyph
1 parent 0518333 commit 8f62bcb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Files.App/UserControls/NavigationToolbar.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
IsEnabled="{x:Bind Commands.NavigateBack.IsExecutable, Mode=OneWay}"
274274
Style="{StaticResource AddressToolbarButtonStyle}"
275275
ToolTipService.ToolTip="{x:Bind Commands.NavigateBack.LabelWithHotKey, Mode=OneWay}">
276-
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateBack.Glyph.BaseGlyph, Mode=OneWay}" />
276+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateBack.Glyph.BaseGlyph}" />
277277
<Button.ContextFlyout>
278278
<MenuFlyout
279279
x:Name="BackHistoryFlyout"
@@ -303,7 +303,7 @@
303303
IsEnabled="{x:Bind Commands.NavigateForward.IsExecutable, Mode=OneWay}"
304304
Style="{StaticResource AddressToolbarButtonStyle}"
305305
ToolTipService.ToolTip="{x:Bind Commands.NavigateForward.LabelWithHotKey, Mode=OneWay}">
306-
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateForward.Glyph.BaseGlyph, Mode=OneWay}" />
306+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateForward.Glyph.BaseGlyph}" />
307307
<Button.ContextFlyout>
308308
<MenuFlyout
309309
x:Name="ForwardHistoryFlyout"
@@ -333,7 +333,7 @@
333333
IsEnabled="{x:Bind Commands.NavigateUp.IsExecutable, Mode=OneWay}"
334334
Style="{StaticResource AddressToolbarButtonStyle}"
335335
ToolTipService.ToolTip="{x:Bind Commands.NavigateUp.LabelWithHotKey, Mode=OneWay}">
336-
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateUp.Glyph.BaseGlyph, Mode=OneWay}" />
336+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateUp.Glyph.BaseGlyph}" />
337337
</Button>
338338

339339
<Button
@@ -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, Mode=OneWay}" />
348+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.RefreshItems.Glyph.BaseGlyph}" />
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, Mode=OneWay}" />
361+
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateHome.Glyph.BaseGlyph}" />
362362
</Button>
363363
</StackPanel>
364364

@@ -484,7 +484,7 @@
484484
Style="{StaticResource AddressToolbarButtonStyle}"
485485
ToolTipService.ToolTip="{x:Bind Commands.Search.LabelWithHotKey, Mode=OneWay}"
486486
Visibility="Collapsed">
487-
<FontIcon FontSize="14" Glyph="{x:Bind ViewModel.SearchButtonGlyph, Mode=OneWay}" />
487+
<FontIcon FontSize="14" Glyph="{x:Bind ViewModel.SearchButtonGlyph}" />
488488
</Button>
489489

490490
<!-- Shelf Pane -->

0 commit comments

Comments
 (0)