2022-07-08 19:47:11 +01:00
|
|
|
<window:StyleableWindow
|
2022-07-28 23:41:34 +01:00
|
|
|
x:Class="Ryujinx.Ava.Ui.Windows.DownloadableContentManagerWindow"
|
2022-07-08 19:47:11 +01:00
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
2022-11-25 11:41:34 +00:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-07-08 19:47:11 +01:00
|
|
|
xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
|
2022-11-25 11:41:34 +00:00
|
|
|
Width="800"
|
|
|
|
Height="500"
|
2022-11-25 16:55:08 +00:00
|
|
|
MinWidth="800"
|
2022-11-25 11:41:34 +00:00
|
|
|
MinHeight="500"
|
2022-11-25 16:55:08 +00:00
|
|
|
MaxWidth="800"
|
|
|
|
MaxHeight="500"
|
2022-07-08 19:47:11 +01:00
|
|
|
SizeToContent="Height"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
mc:Ignorable="d">
|
2022-07-28 23:41:34 +01:00
|
|
|
<Grid Name="DownloadableContentGrid" Margin="15">
|
2022-07-08 19:47:11 +01:00
|
|
|
<Grid.RowDefinitions>
|
2022-11-25 11:41:34 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
2022-07-08 19:47:11 +01:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
2022-11-25 11:41:34 +00:00
|
|
|
Name="Heading"
|
2022-07-08 19:47:11 +01:00
|
|
|
Grid.Row="1"
|
2022-11-25 11:41:34 +00:00
|
|
|
MaxWidth="500"
|
2022-07-08 19:47:11 +01:00
|
|
|
Margin="20,15,20,20"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
LineHeight="18"
|
2022-11-25 11:41:34 +00:00
|
|
|
TextAlignment="Center"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
<DockPanel
|
2022-07-08 19:47:11 +01:00
|
|
|
Grid.Row="2"
|
2022-11-25 11:41:34 +00:00
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Left">
|
|
|
|
<Button
|
|
|
|
Name="EnableAllButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
|
|
|
Command="{Binding EnableAll}">
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerEnableAllButton}" />
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
Name="DisableAllButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
|
|
|
Command="{Binding DisableAll}">
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerDisableAllButton}" />
|
|
|
|
</Button>
|
|
|
|
</DockPanel>
|
|
|
|
<Border
|
|
|
|
Grid.Row="3"
|
2022-07-08 19:47:11 +01:00
|
|
|
Margin="5"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1">
|
2022-11-25 11:41:34 +00:00
|
|
|
<ScrollViewer
|
2022-07-08 19:47:11 +01:00
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
HorizontalScrollBarVisibility="Auto"
|
|
|
|
VerticalScrollBarVisibility="Auto">
|
2022-11-25 11:41:34 +00:00
|
|
|
<DataGrid
|
|
|
|
Name="DlcDataGrid"
|
|
|
|
MinHeight="200"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
CanUserResizeColumns="True"
|
|
|
|
CanUserSortColumns="True"
|
|
|
|
HorizontalScrollBarVisibility="Auto"
|
|
|
|
Items="{Binding _downloadableContents}"
|
|
|
|
SelectionMode="Extended"
|
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
<DataGrid.Styles>
|
|
|
|
<Styles>
|
|
|
|
<Style Selector="DataGridCell:nth-child(3), DataGridCell:nth-child(4)">
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
</Style>
|
|
|
|
</Styles>
|
|
|
|
<Styles>
|
|
|
|
<Style Selector="DataGridCell:nth-child(1)">
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
|
|
|
</Style>
|
|
|
|
</Styles>
|
|
|
|
</DataGrid.Styles>
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTemplateColumn Width="90">
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<CheckBox
|
|
|
|
Width="50"
|
|
|
|
MinWidth="40"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
IsChecked="{Binding Enabled}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataGridTemplateColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingEnabledLabel}" />
|
|
|
|
</DataGridTemplateColumn.Header>
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTextColumn Width="140" Binding="{Binding TitleId}">
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingTitleIdLabel}" />
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
</DataGridTextColumn>
|
|
|
|
<DataGridTextColumn Width="280" Binding="{Binding FullPath}">
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingFullPathLabel}" />
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
</DataGridTextColumn>
|
|
|
|
<DataGridTextColumn Binding="{Binding ContainerPath}">
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingContainerPathLabel}" />
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
</DataGridTextColumn>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</ScrollViewer>
|
2022-07-08 19:47:11 +01:00
|
|
|
</Border>
|
|
|
|
<DockPanel
|
2022-11-25 11:41:34 +00:00
|
|
|
Grid.Row="4"
|
2022-07-08 19:47:11 +01:00
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Stretch">
|
|
|
|
<DockPanel Margin="0" HorizontalAlignment="Left">
|
|
|
|
<Button
|
|
|
|
Name="AddButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
|
|
|
Command="{Binding Add}">
|
|
|
|
<TextBlock Text="{locale:Locale SettingsTabGeneralAdd}" />
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
Name="RemoveButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
|
|
|
Command="{Binding RemoveSelected}">
|
|
|
|
<TextBlock Text="{locale:Locale SettingsTabGeneralRemove}" />
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
Name="RemoveAllButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
|
|
|
Command="{Binding RemoveAll}">
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerRemoveAllButton}" />
|
|
|
|
</Button>
|
|
|
|
</DockPanel>
|
|
|
|
<DockPanel Margin="0" HorizontalAlignment="Right">
|
|
|
|
<Button
|
|
|
|
Name="SaveButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
2022-07-28 23:41:34 +01:00
|
|
|
Command="{Binding SaveAndClose}">
|
2022-07-08 19:47:11 +01:00
|
|
|
<TextBlock Text="{locale:Locale SettingsButtonSave}" />
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
Name="CancelButton"
|
|
|
|
MinWidth="90"
|
|
|
|
Margin="5"
|
|
|
|
Command="{Binding Close}">
|
|
|
|
<TextBlock Text="{locale:Locale InputDialogCancel}" />
|
|
|
|
</Button>
|
|
|
|
</DockPanel>
|
|
|
|
</DockPanel>
|
|
|
|
</Grid>
|
|
|
|
</window:StyleableWindow>
|