Use new MenuItem.ToggleType
This commit is contained in:
parent
9636b0a626
commit
1d7c624a2b
1 changed files with 9 additions and 50 deletions
|
@ -57,75 +57,34 @@
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem VerticalAlignment="Center" Header="{locale:Locale MenuBarOptions}">
|
<MenuItem VerticalAlignment="Center" Header="{locale:Locale MenuBarOptions}">
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Padding="-10,0,0,0"
|
|
||||||
Command="{Binding ToggleFullscreen}"
|
Command="{Binding ToggleFullscreen}"
|
||||||
Header="{locale:Locale MenuBarOptionsToggleFullscreen}"
|
Header="{locale:Locale MenuBarOptionsToggleFullscreen}"
|
||||||
InputGesture="F11" />
|
InputGesture="F11" />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Padding="0"
|
|
||||||
Command="{Binding ToggleStartGamesInFullscreen}"
|
Command="{Binding ToggleStartGamesInFullscreen}"
|
||||||
Header="{locale:Locale MenuBarOptionsStartGamesInFullscreen}">
|
Header="{locale:Locale MenuBarOptionsStartGamesInFullscreen}"
|
||||||
<MenuItem.Icon>
|
ToggleType="CheckBox"
|
||||||
<CheckBox
|
IsChecked="{Binding StartGamesInFullscreen}" />
|
||||||
MinWidth="{DynamicResource CheckBoxSize}"
|
|
||||||
MinHeight="{DynamicResource CheckBoxSize}"
|
|
||||||
IsChecked="{Binding StartGamesInFullscreen, Mode=TwoWay}"
|
|
||||||
Padding="0" />
|
|
||||||
</MenuItem.Icon>
|
|
||||||
<MenuItem.Styles>
|
|
||||||
<Style Selector="Viewbox#PART_IconPresenter">
|
|
||||||
<Setter Property="MaxHeight" Value="36" />
|
|
||||||
<Setter Property="MinHeight" Value="36" />
|
|
||||||
<Setter Property="MaxWidth" Value="36" />
|
|
||||||
<Setter Property="MinWidth" Value="36" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="ContentPresenter#PART_HeaderPresenter">
|
|
||||||
<Setter Property="Padding" Value="-10,0,0,0" />
|
|
||||||
</Style>
|
|
||||||
</MenuItem.Styles>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Padding="0"
|
|
||||||
IsVisible="{Binding ShowConsoleVisible}"
|
IsVisible="{Binding ShowConsoleVisible}"
|
||||||
Command="{Binding ToggleShowConsole}"
|
Command="{Binding ToggleShowConsole}"
|
||||||
Header="{locale:Locale MenuBarOptionsShowConsole}">
|
Header="{locale:Locale MenuBarOptionsShowConsole}"
|
||||||
<MenuItem.Icon>
|
ToggleType="CheckBox"
|
||||||
<CheckBox
|
IsChecked="{Binding ShowConsole}" />
|
||||||
MinWidth="{DynamicResource CheckBoxSize}"
|
|
||||||
MinHeight="{DynamicResource CheckBoxSize}"
|
|
||||||
IsChecked="{Binding ShowConsole, Mode=TwoWay}"
|
|
||||||
Padding="0" />
|
|
||||||
</MenuItem.Icon>
|
|
||||||
<MenuItem.Styles>
|
|
||||||
<Style Selector="Viewbox#PART_IconPresenter">
|
|
||||||
<Setter Property="MaxHeight" Value="36" />
|
|
||||||
<Setter Property="MinHeight" Value="36" />
|
|
||||||
<Setter Property="MaxWidth" Value="36" />
|
|
||||||
<Setter Property="MinWidth" Value="36" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="ContentPresenter#PART_HeaderPresenter">
|
|
||||||
<Setter Property="Padding" Value="-10,0,0,0" />
|
|
||||||
</Style>
|
|
||||||
</MenuItem.Styles>
|
|
||||||
</MenuItem>
|
|
||||||
<Separator />
|
<Separator />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Name="ChangeLanguageMenuItem"
|
Name="ChangeLanguageMenuItem"
|
||||||
Padding="-10,0,0,0"
|
|
||||||
Header="{locale:Locale MenuBarOptionsChangeLanguage}" />
|
Header="{locale:Locale MenuBarOptionsChangeLanguage}" />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Name="ToggleFileTypesMenuItem"
|
Name="ToggleFileTypesMenuItem"
|
||||||
Padding="-10,0,0,0"
|
|
||||||
Header="{locale:Locale MenuBarShowFileTypes}" />
|
Header="{locale:Locale MenuBarShowFileTypes}" />
|
||||||
<Separator />
|
<Separator />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Click="OpenSettings"
|
Click="OpenSettings"
|
||||||
Padding="-10,0,0,0"
|
|
||||||
Header="{locale:Locale MenuBarOptionsSettings}"
|
Header="{locale:Locale MenuBarOptionsSettings}"
|
||||||
ToolTip.Tip="{locale:Locale OpenSettingsTooltip}" />
|
ToolTip.Tip="{locale:Locale OpenSettingsTooltip}" />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
Command="{Binding ManageProfiles}"
|
Command="{Binding ManageProfiles}"
|
||||||
Padding="-10,0,0,0"
|
|
||||||
Header="{locale:Locale MenuBarOptionsManageUserProfiles}"
|
Header="{locale:Locale MenuBarOptionsManageUserProfiles}"
|
||||||
IsEnabled="{Binding EnableNonGameRunningControls}"
|
IsEnabled="{Binding EnableNonGameRunningControls}"
|
||||||
ToolTip.Tip="{locale:Locale OpenProfileManagerTooltip}" />
|
ToolTip.Tip="{locale:Locale OpenProfileManagerTooltip}" />
|
||||||
|
|
Loading…
Reference in a new issue