2022-07-08 20:47:11 +02:00
|
|
|
<window:StyleableWindow
|
|
|
|
x:Class="Ryujinx.Ava.Ui.Windows.TitleUpdateWindow"
|
|
|
|
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 17:55:08 +01:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-07-08 20:47:11 +02:00
|
|
|
xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
|
2022-11-25 17:55:08 +01:00
|
|
|
Width="600"
|
|
|
|
Height="400"
|
|
|
|
MinWidth="600"
|
|
|
|
MinHeight="400"
|
|
|
|
MaxWidth="600"
|
|
|
|
MaxHeight="400"
|
2022-07-08 20:47:11 +02:00
|
|
|
SizeToContent="Height"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Margin="15">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
2022-11-25 17:55:08 +01:00
|
|
|
Name="Heading"
|
2022-07-08 20:47:11 +02:00
|
|
|
Grid.Row="1"
|
2022-11-25 17:55:08 +01:00
|
|
|
MaxWidth="500"
|
2022-07-08 20:47:11 +02:00
|
|
|
Margin="20,15,20,20"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
LineHeight="18"
|
2022-11-25 17:55:08 +01:00
|
|
|
TextAlignment="Center"
|
|
|
|
TextWrapping="Wrap" />
|
2022-07-08 20:47:11 +02:00
|
|
|
<Border
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="5"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1">
|
|
|
|
<ScrollViewer
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
HorizontalScrollBarVisibility="Auto"
|
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
<ItemsControl
|
|
|
|
Margin="10"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch"
|
2022-11-25 17:55:08 +01:00
|
|
|
Items="{Binding _titleUpdates}">
|
2022-07-08 20:47:11 +02:00
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2022-11-25 17:55:08 +01:00
|
|
|
<RadioButton
|
|
|
|
Padding="8,0"
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
GroupName="Update"
|
|
|
|
IsChecked="{Binding IsEnabled, Mode=TwoWay}">
|
|
|
|
<Label
|
|
|
|
Margin="0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Content="{Binding Label}"
|
|
|
|
FontSize="12" />
|
2022-07-08 20:47:11 +02:00
|
|
|
</RadioButton>
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
</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"
|
|
|
|
Command="{Binding Save}">
|
|
|
|
<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>
|