|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | 3 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:s="using:SourceGit" |
5 | 6 | xmlns:vm="using:SourceGit.ViewModels" |
6 | 7 | xmlns:m="using:SourceGit.Models" |
7 | 8 | xmlns:c="using:SourceGit.Converters" |
|
49 | 50 | </Border> |
50 | 51 |
|
51 | 52 | <!-- Menu --> |
52 | | - <Button Grid.Column="{OnPlatform 0, macOS=2}" Classes="icon_button" VerticalAlignment="Bottom"> |
| 53 | + <Button Grid.Column="0" Classes="icon_button" VerticalAlignment="Bottom" IsVisible="{OnPlatform True, macOS=False}"> |
53 | 54 | <Button.Margin> |
54 | 55 | <OnPlatform Default="4,0,2,3" macOS="4,0,6,3"/> |
55 | 56 | </Button.Margin> |
56 | 57 |
|
57 | 58 | <Button.Flyout> |
58 | 59 | <MenuFlyout Placement="BottomEdgeAlignedLeft" VerticalOffset="-8"> |
59 | | - <MenuItem Header="{DynamicResource Text.Preference}" Click="OpenPreference"> |
| 60 | + <MenuItem Header="{DynamicResource Text.Preference}" Command="{x:Static s:App.OpenPreferenceCommand}"> |
60 | 61 | <MenuItem.Icon> |
61 | 62 | <Path Width="14" Height="14" Data="{StaticResource Icons.Settings2}"/> |
62 | 63 | </MenuItem.Icon> |
63 | 64 | </MenuItem> |
64 | | - <MenuItem Header="{DynamicResource Text.Hotkeys}" Click="OpenHotkeys"> |
| 65 | + <MenuItem Header="{DynamicResource Text.Hotkeys}" Command="{x:Static s:App.OpenHotkeysCommand}"> |
65 | 66 | <MenuItem.Icon> |
66 | 67 | <Path Width="14" Height="14" Data="{StaticResource Icons.Hotkeys}"/> |
67 | 68 | </MenuItem.Icon> |
68 | 69 | </MenuItem> |
69 | 70 | <MenuItem Header="-"/> |
70 | | - <MenuItem Header="{DynamicResource Text.SelfUpdate}" Click="Check4Update"> |
| 71 | + <MenuItem Header="{DynamicResource Text.SelfUpdate}" Command="{x:Static s:App.CheckForUpdateCommand}"> |
71 | 72 | <MenuItem.Icon> |
72 | 73 | <Path Width="14" Height="14" Data="{StaticResource Icons.SoftwareUpdate}"/> |
73 | 74 | </MenuItem.Icon> |
74 | 75 | </MenuItem> |
75 | 76 | <MenuItem Header="-"/> |
76 | | - <MenuItem Header="{DynamicResource Text.About}" Click="OpenAboutDialog"> |
| 77 | + <MenuItem Header="{DynamicResource Text.About}" Command="{x:Static s:App.OpenAboutCommand}"> |
77 | 78 | <MenuItem.Icon> |
78 | 79 | <Path Width="14" Height="14" Data="{StaticResource Icons.Info}"/> |
79 | 80 | </MenuItem.Icon> |
|
0 commit comments