2022-07-08 11:47:11 -07:00
|
|
|
<window:StyleableWindow
|
2022-07-28 15:41:34 -07:00
|
|
|
x:Class="Ryujinx.Ava.Ui.Windows.DownloadableContentManagerWindow"
|
2022-07-08 11:47:11 -07: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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
|
|
|
xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
|
|
|
|
SizeToContent="Height"
|
|
|
|
Width="600" MinHeight="500" Height="500"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
MinWidth="600"
|
|
|
|
mc:Ignorable="d">
|
2022-07-28 15:41:34 -07:00
|
|
|
<Grid Name="DownloadableContentGrid" Margin="15">
|
2022-07-08 11:47:11 -07:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="1"
|
|
|
|
Margin="20,15,20,20"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
MaxWidth="500"
|
|
|
|
LineHeight="18"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
Text="{Binding Heading}"
|
|
|
|
TextAlignment="Center" />
|
|
|
|
<Border
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="5"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1">
|
|
|
|
<DataGrid
|
|
|
|
MinHeight="200"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
HorizontalScrollBarVisibility="Auto"
|
2022-07-28 15:41:34 -07:00
|
|
|
Items="{Binding DownloadableContents}"
|
2022-07-08 11:47:11 -07:00
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTemplateColumn Width="90">
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<CheckBox
|
|
|
|
Width="50"
|
|
|
|
MinWidth="40"
|
|
|
|
HorizontalAlignment="Right"
|
2022-07-28 15:41:34 -07:00
|
|
|
IsChecked="{Binding Enabled}" />
|
2022-07-08 11:47:11 -07:00
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataGridTemplateColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingEnabledLabel}" />
|
|
|
|
</DataGridTemplateColumn.Header>
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTextColumn
|
|
|
|
Width="190"
|
|
|
|
Binding="{Binding TitleId}"
|
|
|
|
CanUserResize="True">
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingTitleIdLabel}" />
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
</DataGridTextColumn>
|
|
|
|
<DataGridTextColumn
|
|
|
|
Width="*"
|
|
|
|
Binding="{Binding ContainerPath}"
|
|
|
|
CanUserResize="True">
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingContainerPathLabel}" />
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
</DataGridTextColumn>
|
|
|
|
<DataGridTextColumn
|
|
|
|
Width="*"
|
|
|
|
Binding="{Binding FullPath}"
|
|
|
|
CanUserResize="True">
|
|
|
|
<DataGridTextColumn.Header>
|
|
|
|
<TextBlock Text="{locale:Locale DlcManagerTableHeadingFullPathLabel}" />
|
|
|
|
</DataGridTextColumn.Header>
|
|
|
|
</DataGridTextColumn>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</Border>
|
|
|
|
<DockPanel
|
|
|
|
Grid.Row="3"
|
|
|
|
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 15:41:34 -07:00
|
|
|
Command="{Binding SaveAndClose}">
|
2022-07-08 11:47:11 -07: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>
|