2022-05-15 07:30:15 -04:00
|
|
|
<window:StyleableWindow
|
|
|
|
x:Class="Ryujinx.Ava.Ui.Windows.MainWindow"
|
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:controls="clr-namespace:Ryujinx.Ava.Ui.Controls"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-06-23 14:59:02 -04:00
|
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
2022-05-15 07:30:15 -04:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-06-23 14:59:02 -04:00
|
|
|
xmlns:models="clr-namespace:Ryujinx.Ava.Ui.Models"
|
|
|
|
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
2022-05-15 07:30:15 -04:00
|
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.Ui.ViewModels"
|
|
|
|
xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
|
|
|
|
Title="Ryujinx"
|
|
|
|
Width="1280"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="785"
|
2022-05-15 07:30:15 -04:00
|
|
|
MinWidth="1024"
|
|
|
|
MinHeight="680"
|
2022-06-23 14:59:02 -04:00
|
|
|
d:DesignHeight="720"
|
|
|
|
d:DesignWidth="1280"
|
2022-05-15 07:30:15 -04:00
|
|
|
x:CompileBindings="True"
|
|
|
|
x:DataType="viewModels:MainWindowViewModel"
|
2022-06-23 14:59:02 -04:00
|
|
|
WindowStartupLocation="CenterScreen"
|
2022-05-15 07:30:15 -04:00
|
|
|
mc:Ignorable="d">
|
|
|
|
<Window.Styles>
|
|
|
|
<Style Selector="TitleBar:fullscreen">
|
|
|
|
<Setter Property="Background" Value="#000000" />
|
|
|
|
</Style>
|
|
|
|
</Window.Styles>
|
|
|
|
<Design.DataContext>
|
|
|
|
<viewModels:MainWindowViewModel />
|
|
|
|
</Design.DataContext>
|
|
|
|
<Window.Resources>
|
|
|
|
<controls:BitmapArrayValueConverter x:Key="ByteImage" />
|
|
|
|
</Window.Resources>
|
|
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<controls:OffscreenTextBox Name="HiddenTextBox" Grid.Row="0" />
|
2022-06-23 14:59:02 -04:00
|
|
|
<StackPanel Grid.Row="0" IsVisible="False">
|
2022-05-15 07:30:15 -04:00
|
|
|
<controls:HotKeyControl Name="FullscreenHotKey" Command="{ReflectionBinding ToggleFullscreen}" />
|
|
|
|
<controls:HotKeyControl Name="FullscreenHotKey2" Command="{ReflectionBinding ToggleFullscreen}" />
|
|
|
|
<controls:HotKeyControl Name="DockToggleHotKey" Command="{ReflectionBinding ToggleDockMode}" />
|
|
|
|
<controls:HotKeyControl Name="ExitHotKey" Command="{ReflectionBinding ExitCurrentState}" />
|
|
|
|
</StackPanel>
|
2022-06-23 14:59:02 -04:00
|
|
|
<Grid
|
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="0"
|
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
IsVisible="{Binding ShowMenuAndStatusBar}"
|
|
|
|
Orientation="Vertical">
|
|
|
|
<DockPanel HorizontalAlignment="Stretch">
|
|
|
|
<Menu
|
|
|
|
Name="Menu"
|
|
|
|
Height="35"
|
2022-06-23 14:59:02 -04:00
|
|
|
Margin="0"
|
2022-05-15 07:30:15 -04:00
|
|
|
HorizontalAlignment="Left">
|
|
|
|
<Menu.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
2022-06-23 14:59:02 -04:00
|
|
|
<DockPanel Margin="0" HorizontalAlignment="Stretch" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</Menu.ItemsPanel>
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem VerticalAlignment="Center" Header="{locale:Locale MenuBarFile}">
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenFile}"
|
|
|
|
Header="{locale:Locale MenuBarFileOpenFromFile}"
|
|
|
|
IsEnabled="{Binding EnableNonGameRunningControls}"
|
|
|
|
ToolTip.Tip="{locale:Locale LoadApplicationFileTooltip}" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenFolder}"
|
|
|
|
Header="{locale:Locale MenuBarFileOpenUnpacked}"
|
|
|
|
IsEnabled="{Binding EnableNonGameRunningControls}"
|
|
|
|
ToolTip.Tip="{locale:Locale LoadApplicationFolderTooltip}" />
|
|
|
|
<MenuItem Header="{locale:Locale MenuBarFileOpenApplet}" IsEnabled="{Binding IsAppletMenuActive}">
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenMiiApplet}"
|
|
|
|
Header="Mii Edit Applet"
|
|
|
|
ToolTip.Tip="{locale:Locale MenuBarFileOpenAppletOpenMiiAppletToolTip}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
|
|
|
<Separator />
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenRyujinxFolder}"
|
|
|
|
Header="{locale:Locale MenuBarFileOpenEmuFolder}"
|
|
|
|
ToolTip.Tip="{locale:Locale OpenRyujinxFolderTooltip}" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenLogsFolder}"
|
|
|
|
Header="{locale:Locale MenuBarFileOpenLogsFolder}"
|
|
|
|
ToolTip.Tip="{locale:Locale OpenRyujinxLogsTooltip}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<Separator />
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding CloseWindow}"
|
|
|
|
Header="{locale:Locale MenuBarFileExit}"
|
|
|
|
ToolTip.Tip="{locale:Locale ExitTooltip}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem VerticalAlignment="Center" Header="{locale:Locale MenuBarOptions}">
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ToggleFullscreen}"
|
|
|
|
Header="{locale:Locale MenuBarOptionsToggleFullscreen}"
|
|
|
|
InputGesture="F11" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<MenuItem Header="{locale:Locale MenuBarOptionsStartGamesInFullscreen}">
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<CheckBox IsChecked="{Binding StartGamesInFullscreen, Mode=TwoWay}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
2022-07-12 08:58:31 -04:00
|
|
|
<MenuItem Header="{locale:Locale MenuBarOptionsShowConsole}" IsVisible="{Binding ShowConsoleVisible}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<MenuItem.Icon>
|
|
|
|
<CheckBox IsChecked="{Binding ShowConsole, Mode=TwoWay}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<Separator />
|
|
|
|
<MenuItem Header="{locale:Locale MenuBarOptionsChangeLanguage}">
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="en_US"
|
|
|
|
Header="American English" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="pt_BR"
|
|
|
|
Header="Brazilian Portuguese" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="es_ES"
|
|
|
|
Header="Castilian Spanish" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="fr_FR"
|
|
|
|
Header="French" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="de_DE"
|
|
|
|
Header="German" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="el_GR"
|
|
|
|
Header="Greek" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="it_IT"
|
|
|
|
Header="Italian" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="ko_KR"
|
|
|
|
Header="Korean" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="ru_RU"
|
|
|
|
Header="Russian" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="tr_TR"
|
|
|
|
Header="Turkish" />
|
2022-06-25 11:03:48 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ChangeLanguage}"
|
|
|
|
CommandParameter="zh_CN"
|
|
|
|
Header="Simplified Chinese" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
|
|
|
<Separator />
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenSettings}"
|
|
|
|
Header="{locale:Locale MenuBarOptionsSettings}"
|
|
|
|
ToolTip.Tip="{locale:Locale OpenSettingsTooltip}" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding ManageProfiles}"
|
|
|
|
Header="{locale:Locale MenuBarOptionsManageUserProfiles}"
|
|
|
|
IsEnabled="{Binding EnableNonGameRunningControls}"
|
|
|
|
ToolTip.Tip="{locale:Locale OpenProfileManagerTooltip}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
|
|
|
<MenuItem
|
2022-06-23 14:59:02 -04:00
|
|
|
Name="ActionsMenuItem"
|
2022-05-15 07:30:15 -04:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Header="{locale:Locale MenuBarActions}"
|
|
|
|
IsEnabled="{Binding IsGameRunning}">
|
|
|
|
<MenuItem
|
|
|
|
Click="PauseEmulation_Click"
|
|
|
|
Header="{locale:Locale MenuBarOptionsPauseEmulation}"
|
2022-06-23 14:59:02 -04:00
|
|
|
InputGesture="{Binding PauseKey}"
|
2022-05-15 07:30:15 -04:00
|
|
|
IsEnabled="{Binding !IsPaused}"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !IsPaused}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<MenuItem
|
|
|
|
Click="ResumeEmulation_Click"
|
|
|
|
Header="{locale:Locale MenuBarOptionsResumeEmulation}"
|
2022-06-23 14:59:02 -04:00
|
|
|
InputGesture="{Binding PauseKey}"
|
2022-05-15 07:30:15 -04:00
|
|
|
IsEnabled="{Binding IsPaused}"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding IsPaused}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<MenuItem
|
|
|
|
Click="StopEmulation_Click"
|
|
|
|
Header="{locale:Locale MenuBarOptionsStopEmulation}"
|
2022-06-23 14:59:02 -04:00
|
|
|
InputGesture="Escape"
|
|
|
|
IsEnabled="{Binding IsGameRunning}"
|
|
|
|
ToolTip.Tip="{locale:Locale StopEmulationTooltip}" />
|
|
|
|
<MenuItem Command="{ReflectionBinding SimulateWakeUpMessage}" Header="{locale:Locale MenuBarOptionsSimulateWakeUpMessage}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<Separator />
|
|
|
|
<MenuItem
|
|
|
|
Name="ScanAmiiboMenuItem"
|
|
|
|
AttachedToVisualTree="ScanAmiiboMenuItem_AttachedToVisualTree"
|
|
|
|
Command="{ReflectionBinding OpenAmiiboWindow}"
|
|
|
|
Header="{locale:Locale MenuBarActionsScanAmiibo}"
|
|
|
|
IsEnabled="{Binding IsAmiiboRequested}" />
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding TakeScreenshot}"
|
|
|
|
Header="{locale:Locale MenuBarFileToolsTakeScreenshot}"
|
|
|
|
InputGesture="{Binding ScreenshotKey}"
|
|
|
|
IsEnabled="{Binding IsGameRunning}" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding HideUi}"
|
|
|
|
Header="{locale:Locale MenuBarFileToolsHideUi}"
|
|
|
|
InputGesture="{Binding ShowUiKey}"
|
|
|
|
IsEnabled="{Binding IsGameRunning}" />
|
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenCheatManagerForCurrentApp}"
|
|
|
|
Header="{locale:Locale GameListContextMenuManageCheat}"
|
|
|
|
IsEnabled="{Binding IsGameRunning}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem VerticalAlignment="Center" Header="{locale:Locale MenuBarTools}">
|
|
|
|
<MenuItem Header="{locale:Locale MenuBarToolsInstallFirmware}" IsEnabled="{Binding EnableNonGameRunningControls}">
|
|
|
|
<MenuItem Command="{ReflectionBinding InstallFirmwareFromFile}" Header="{locale:Locale MenuBarFileToolsInstallFirmwareFromFile}" />
|
|
|
|
<MenuItem Command="{ReflectionBinding InstallFirmwareFromFolder}" Header="{locale:Locale MenuBarFileToolsInstallFirmwareFromDirectory}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
|
|
|
</MenuItem>
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem VerticalAlignment="Center" Header="{locale:Locale MenuBarHelp}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<MenuItem
|
|
|
|
Name="UpdateMenuItem"
|
|
|
|
Command="{ReflectionBinding CheckForUpdates}"
|
|
|
|
Header="{locale:Locale MenuBarHelpCheckForUpdates}"
|
|
|
|
ToolTip.Tip="{locale:Locale CheckUpdatesTooltip}" />
|
|
|
|
<Separator />
|
2022-06-23 14:59:02 -04:00
|
|
|
<MenuItem
|
|
|
|
Command="{ReflectionBinding OpenAboutWindow}"
|
|
|
|
Header="{locale:Locale MenuBarHelpAbout}"
|
|
|
|
ToolTip.Tip="{locale:Locale OpenAboutTooltip}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</MenuItem>
|
|
|
|
</Menu>
|
|
|
|
</DockPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<ContentControl
|
|
|
|
Name="Content"
|
|
|
|
Grid.Row="1"
|
|
|
|
Padding="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
BorderBrush="{DynamicResource ThemeControlBorderColor}"
|
|
|
|
BorderThickness="0,0,0,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
DockPanel.Dock="Top"
|
|
|
|
IsVisible="{Binding ShowContent}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
2022-06-23 14:59:02 -04:00
|
|
|
<DockPanel
|
|
|
|
Grid.Row="0"
|
|
|
|
Margin="0,0,0,5"
|
|
|
|
HorizontalAlignment="Stretch">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Button
|
2022-06-23 14:59:02 -04:00
|
|
|
Width="40"
|
|
|
|
MinWidth="40"
|
|
|
|
Margin="5,2,0,2"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Command="{ReflectionBinding SetListMode}"
|
|
|
|
IsEnabled="{Binding IsGrid}">
|
|
|
|
<ui:FontIcon
|
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontFamily="avares://FluentAvalonia/Fonts#Symbols"
|
|
|
|
Glyph="{controls:GlyphValueConverter List}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</Button>
|
|
|
|
<Button
|
2022-06-23 14:59:02 -04:00
|
|
|
Width="40"
|
|
|
|
MinWidth="40"
|
|
|
|
Margin="5,2,5,2"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Command="{ReflectionBinding SetGridMode}"
|
|
|
|
IsEnabled="{Binding IsList}">
|
|
|
|
<ui:FontIcon
|
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontFamily="avares://FluentAvalonia/Fonts#Symbols"
|
|
|
|
Glyph="{controls:GlyphValueConverter Grid}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</Button>
|
2022-06-23 14:59:02 -04:00
|
|
|
<TextBlock
|
|
|
|
Margin="10,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{locale:Locale IconSize}"
|
|
|
|
ToolTip.Tip="{locale:Locale IconSizeTooltip}" />
|
|
|
|
<Slider
|
|
|
|
Width="150"
|
|
|
|
Height="35"
|
|
|
|
Margin="5,-10,5,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsSnapToTickEnabled="True"
|
|
|
|
Maximum="4"
|
|
|
|
Minimum="1"
|
|
|
|
TickFrequency="1"
|
|
|
|
ToolTip.Tip="{locale:Locale IconSizeTooltip}"
|
|
|
|
Value="{Binding GridSizeScale}" />
|
|
|
|
<CheckBox
|
|
|
|
Margin="0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsChecked="{Binding ShowNames, Mode=TwoWay}"
|
|
|
|
IsVisible="{Binding IsGrid}">
|
|
|
|
<TextBlock Margin="5,3,0,0" Text="{locale:Locale CommonShowNames}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</CheckBox>
|
|
|
|
<TextBox
|
|
|
|
Name="SearchBox"
|
|
|
|
MinWidth="200"
|
|
|
|
Margin="5,0,5,0"
|
|
|
|
HorizontalAlignment="Right"
|
2022-06-23 14:59:02 -04:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
DockPanel.Dock="Right"
|
2022-05-15 07:30:15 -04:00
|
|
|
KeyUp="SearchBox_OnKeyUp"
|
|
|
|
Text="{Binding SearchText}"
|
|
|
|
Watermark="{locale:Locale MenuSearch}" />
|
2022-06-23 14:59:02 -04:00
|
|
|
<ui:DropDownButton
|
|
|
|
Width="150"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Content="{Binding SortName}"
|
|
|
|
DockPanel.Dock="Right">
|
2022-05-15 07:30:15 -04:00
|
|
|
<ui:DropDownButton.Flyout>
|
|
|
|
<Flyout Placement="Bottom">
|
2022-06-23 14:59:02 -04:00
|
|
|
<StackPanel
|
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Orientation="Vertical">
|
2022-05-15 07:30:15 -04:00
|
|
|
<StackPanel>
|
2022-06-23 14:59:02 -04:00
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale CommonFavorite}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByFavorite, Mode=OneTime}"
|
|
|
|
Tag="Favorite" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderApplication}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByTitle, Mode=OneTime}"
|
|
|
|
Tag="Title" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderDeveloper}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByDeveloper, Mode=OneTime}"
|
|
|
|
Tag="Developer" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderTimePlayed}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByTimePlayed, Mode=OneTime}"
|
|
|
|
Tag="TotalTimePlayed" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderLastPlayed}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByLastPlayed, Mode=OneTime}"
|
|
|
|
Tag="LastPlayed" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderFileExtension}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByType, Mode=OneTime}"
|
|
|
|
Tag="FileType" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderFileSize}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedBySize, Mode=OneTime}"
|
|
|
|
Tag="FileSize" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Sort_Checked"
|
|
|
|
Content="{locale:Locale GameListHeaderPath}"
|
|
|
|
GroupName="Sort"
|
|
|
|
IsChecked="{Binding IsSortedByPath, Mode=OneTime}"
|
|
|
|
Tag="Path" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</StackPanel>
|
2022-06-23 14:59:02 -04:00
|
|
|
<Border
|
|
|
|
Width="60"
|
|
|
|
Height="2"
|
|
|
|
Margin="5"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
BorderBrush="White"
|
|
|
|
BorderThickness="0,1,0,0">
|
|
|
|
<Separator Height="0" HorizontalAlignment="Stretch" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</Border>
|
2022-06-23 14:59:02 -04:00
|
|
|
<RadioButton
|
|
|
|
Checked="Order_Checked"
|
|
|
|
Content="{locale:Locale OrderAscending}"
|
|
|
|
GroupName="Order"
|
|
|
|
IsChecked="{Binding IsAscending, Mode=OneTime}"
|
|
|
|
Tag="Ascending" />
|
|
|
|
<RadioButton
|
|
|
|
Checked="Order_Checked"
|
|
|
|
Content="{locale:Locale OrderDescending}"
|
|
|
|
GroupName="Order"
|
|
|
|
IsChecked="{Binding !IsAscending, Mode=OneTime}"
|
|
|
|
Tag="Descending" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</StackPanel>
|
|
|
|
</Flyout>
|
|
|
|
</ui:DropDownButton.Flyout>
|
|
|
|
</ui:DropDownButton>
|
2022-06-23 14:59:02 -04:00
|
|
|
<TextBlock
|
|
|
|
Margin="10,0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
DockPanel.Dock="Right"
|
|
|
|
Text="{locale:Locale CommonSort}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</DockPanel>
|
|
|
|
<controls:GameListView
|
|
|
|
x:Name="GameList"
|
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
2022-06-23 14:59:02 -04:00
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
VerticalContentAlignment="Stretch"
|
2022-05-15 07:30:15 -04:00
|
|
|
IsVisible="{Binding IsList}" />
|
|
|
|
<controls:GameGridView
|
|
|
|
x:Name="GameGrid"
|
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
2022-06-23 14:59:02 -04:00
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
VerticalContentAlignment="Stretch"
|
2022-05-15 07:30:15 -04:00
|
|
|
IsVisible="{Binding IsGrid}" />
|
|
|
|
</Grid>
|
|
|
|
</ContentControl>
|
2022-06-23 14:59:02 -04:00
|
|
|
<Grid
|
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Background="{DynamicResource ThemeContentBackgroundColor}"
|
|
|
|
IsVisible="{Binding ShowLoadProgress}"
|
|
|
|
ZIndex="1000">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Grid
|
|
|
|
Margin="40"
|
2022-06-23 14:59:02 -04:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding ShowLoadProgress}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border
|
|
|
|
Grid.RowSpan="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Grid.Column="0"
|
2022-05-15 07:30:15 -04:00
|
|
|
Width="256"
|
|
|
|
Height="256"
|
|
|
|
Margin="10"
|
|
|
|
Padding="4"
|
|
|
|
BorderBrush="Black"
|
|
|
|
BorderThickness="2"
|
|
|
|
BoxShadow="4 4 32 8 #40000000"
|
2022-06-23 14:59:02 -04:00
|
|
|
CornerRadius="3"
|
|
|
|
IsVisible="{Binding ShowLoadProgress}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Image
|
|
|
|
Width="256"
|
|
|
|
Height="256"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Source="{Binding SelectedIcon, Converter={StaticResource ByteImage}}" />
|
|
|
|
</Border>
|
2022-06-23 14:59:02 -04:00
|
|
|
<Grid
|
|
|
|
Grid.Column="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding ShowLoadProgress}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="0"
|
|
|
|
Margin="10"
|
|
|
|
FontSize="30"
|
|
|
|
FontWeight="Bold"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Text="{Binding LoadHeading}"
|
2022-06-23 14:59:02 -04:00
|
|
|
TextAlignment="Left"
|
|
|
|
TextWrapping="Wrap" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<Border
|
|
|
|
Grid.Row="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
Margin="10"
|
2022-05-15 07:30:15 -04:00
|
|
|
Padding="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="{Binding ProgressBarBackgroundColor}"
|
|
|
|
BorderThickness="1"
|
|
|
|
ClipToBounds="True"
|
|
|
|
CornerRadius="5"
|
|
|
|
IsVisible="{Binding ShowLoadProgress}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<ProgressBar
|
|
|
|
Height="10"
|
2022-06-23 14:59:02 -04:00
|
|
|
MinWidth="500"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="0"
|
|
|
|
Padding="0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Background="{Binding ProgressBarBackgroundColor}"
|
2022-06-23 14:59:02 -04:00
|
|
|
ClipToBounds="True"
|
|
|
|
CornerRadius="5"
|
2022-05-15 07:30:15 -04:00
|
|
|
Foreground="{Binding ProgressBarForegroundColor}"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsIndeterminate="{Binding IsLoadingIndeterminate}"
|
|
|
|
IsVisible="{Binding ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Maximum="{Binding ProgressMaximum}"
|
|
|
|
Minimum="0"
|
|
|
|
Value="{Binding ProgressValue}" />
|
|
|
|
</Border>
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="10"
|
|
|
|
FontSize="18"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Text="{Binding CacheLoadStatus}"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<Grid
|
|
|
|
Name="StatusBar"
|
|
|
|
Grid.Row="2"
|
|
|
|
Height="30"
|
|
|
|
Margin="0,0"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Bottom"
|
2022-06-23 14:59:02 -04:00
|
|
|
Background="{DynamicResource ThemeContentBackgroundColor}"
|
2022-05-15 07:30:15 -04:00
|
|
|
DockPanel.Dock="Bottom"
|
|
|
|
IsVisible="{Binding ShowMenuAndStatusBar}">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2022-06-23 14:59:02 -04:00
|
|
|
<StackPanel
|
|
|
|
Grid.Column="0"
|
|
|
|
Margin="10,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding EnableNonGameRunningControls}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<Grid Margin="0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button
|
|
|
|
Width="25"
|
|
|
|
Height="25"
|
|
|
|
MinWidth="0"
|
|
|
|
Margin="0,0,5,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Background="Transparent"
|
|
|
|
Command="{ReflectionBinding LoadApplications}">
|
2022-06-23 14:59:02 -04:00
|
|
|
<ui:SymbolIcon
|
|
|
|
Width="50"
|
|
|
|
Height="100"
|
|
|
|
Symbol="Refresh" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</Button>
|
|
|
|
<TextBlock
|
|
|
|
Name="LoadStatus"
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="0,0,5,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding EnableNonGameRunningControls}"
|
|
|
|
Text="{locale:Locale StatusBarGamesLoaded}" />
|
|
|
|
<ProgressBar
|
|
|
|
Name="LoadProgressBar"
|
|
|
|
Grid.Column="2"
|
|
|
|
Height="6"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="{DynamicResource HighlightColor}"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding EnableNonGameRunningControls}"
|
|
|
|
Maximum="{Binding StatusBarProgressMaximum}"
|
|
|
|
Value="{Binding StatusBarProgressValue}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="10,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding IsGameRunning}"
|
|
|
|
Orientation="Horizontal">
|
|
|
|
<TextBlock
|
|
|
|
Name="VsyncStatus"
|
2022-06-23 14:59:02 -04:00
|
|
|
Margin="0,0,5,0"
|
2022-05-15 07:30:15 -04:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="{Binding VsyncColor}"
|
|
|
|
IsVisible="{Binding !ShowLoadProgress}"
|
2022-06-23 14:59:02 -04:00
|
|
|
PointerReleased="VsyncStatus_PointerReleased"
|
2022-05-15 07:30:15 -04:00
|
|
|
Text="VSync"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
<Border
|
|
|
|
Width="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="12"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="2,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="Gray"
|
2022-05-15 07:30:15 -04:00
|
|
|
BorderThickness="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<TextBlock
|
|
|
|
Name="DockedStatus"
|
2022-06-23 14:59:02 -04:00
|
|
|
Margin="5,0,5,0"
|
2022-05-15 07:30:15 -04:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
PointerReleased="DockedStatus_PointerReleased"
|
|
|
|
Text="{Binding DockedStatusText}"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
<Border
|
|
|
|
Width="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="12"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="2,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="Gray"
|
2022-05-15 07:30:15 -04:00
|
|
|
BorderThickness="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<TextBlock
|
|
|
|
Name="AspectRatioStatus"
|
2022-06-23 14:59:02 -04:00
|
|
|
Margin="5,0,5,0"
|
2022-05-15 07:30:15 -04:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
PointerReleased="AspectRatioStatus_PointerReleased"
|
|
|
|
Text="{Binding AspectRatioStatusText}"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
<Border
|
|
|
|
Width="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="12"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="2,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="Gray"
|
2022-05-15 07:30:15 -04:00
|
|
|
BorderThickness="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<ui:ToggleSplitButton
|
2022-06-23 14:59:02 -04:00
|
|
|
Name="VolumeStatus"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="-2,0,-3,0"
|
|
|
|
Padding="5,0,0,5"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Background="{DynamicResource ThemeContentBackgroundColor}"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="{DynamicResource ThemeContentBackgroundColor}"
|
|
|
|
Content="{Binding VolumeStatusText}"
|
2022-05-15 07:30:15 -04:00
|
|
|
IsChecked="{Binding VolumeMuted}"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}">
|
2022-05-15 07:30:15 -04:00
|
|
|
<ui:ToggleSplitButton.Flyout>
|
|
|
|
<Flyout Placement="Bottom" ShowMode="TransientWithDismissOnPointerMoveAway">
|
|
|
|
<Grid Margin="0">
|
2022-06-23 14:59:02 -04:00
|
|
|
<Slider
|
|
|
|
Width="150"
|
|
|
|
Margin="0"
|
|
|
|
Padding="0"
|
|
|
|
IsSnapToTickEnabled="True"
|
|
|
|
LargeChange="0.05"
|
|
|
|
Maximum="1"
|
|
|
|
Minimum="0"
|
|
|
|
SmallChange="0.01"
|
|
|
|
TickFrequency="0.05"
|
|
|
|
ToolTip.Tip="{locale:Locale AudioVolumeTooltip}"
|
|
|
|
Value="{Binding Volume}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
</Grid>
|
|
|
|
</Flyout>
|
|
|
|
</ui:ToggleSplitButton.Flyout>
|
|
|
|
</ui:ToggleSplitButton>
|
|
|
|
<Border
|
|
|
|
Width="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="12"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="2,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="Gray"
|
2022-05-15 07:30:15 -04:00
|
|
|
BorderThickness="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<TextBlock
|
|
|
|
Margin="5,0,5,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Text="{Binding GameStatusText}"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
<Border
|
|
|
|
Width="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="12"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="2,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="Gray"
|
2022-05-15 07:30:15 -04:00
|
|
|
BorderThickness="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<TextBlock
|
|
|
|
Margin="5,0,5,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Text="{Binding FifoStatusText}"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
<Border
|
|
|
|
Width="2"
|
2022-06-23 14:59:02 -04:00
|
|
|
Height="12"
|
2022-05-15 07:30:15 -04:00
|
|
|
Margin="2,0"
|
2022-06-23 14:59:02 -04:00
|
|
|
BorderBrush="Gray"
|
2022-05-15 07:30:15 -04:00
|
|
|
BorderThickness="1"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}" />
|
2022-05-15 07:30:15 -04:00
|
|
|
<TextBlock
|
|
|
|
Margin="5,0,5,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
2022-06-23 14:59:02 -04:00
|
|
|
IsVisible="{Binding !ShowLoadProgress}"
|
2022-05-15 07:30:15 -04:00
|
|
|
Text="{Binding GpuStatusText}"
|
|
|
|
TextAlignment="Left" />
|
|
|
|
</StackPanel>
|
2022-06-23 14:59:02 -04:00
|
|
|
<StackPanel
|
|
|
|
Grid.Column="3"
|
|
|
|
Margin="10,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding ShowFirmwareStatus}"
|
|
|
|
Orientation="Horizontal">
|
2022-05-15 07:30:15 -04:00
|
|
|
<TextBlock
|
|
|
|
Name="FirmwareStatus"
|
2022-06-23 14:59:02 -04:00
|
|
|
Margin="0"
|
2022-05-15 07:30:15 -04:00
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{locale:Locale StatusBarSystemVersion}" />
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2022-06-25 11:03:48 -04:00
|
|
|
</window:StyleableWindow>
|