TitleUpdateWindow.axaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <window:StyleableWindow
  2. x:Class="Ryujinx.Ava.Ui.Windows.TitleUpdateWindow"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
  9. Width="600"
  10. Height="400"
  11. MinWidth="600"
  12. MinHeight="400"
  13. MaxWidth="600"
  14. MaxHeight="400"
  15. SizeToContent="Height"
  16. WindowStartupLocation="CenterOwner"
  17. mc:Ignorable="d">
  18. <Grid Margin="15">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="Auto" />
  24. </Grid.RowDefinitions>
  25. <TextBlock
  26. Name="Heading"
  27. Grid.Row="1"
  28. MaxWidth="500"
  29. Margin="20,15,20,20"
  30. HorizontalAlignment="Center"
  31. VerticalAlignment="Center"
  32. LineHeight="18"
  33. TextAlignment="Center"
  34. TextWrapping="Wrap" />
  35. <Border
  36. Grid.Row="2"
  37. Margin="5"
  38. HorizontalAlignment="Stretch"
  39. VerticalAlignment="Stretch"
  40. BorderBrush="Gray"
  41. BorderThickness="1">
  42. <ScrollViewer
  43. VerticalAlignment="Stretch"
  44. HorizontalScrollBarVisibility="Auto"
  45. VerticalScrollBarVisibility="Auto">
  46. <ItemsControl
  47. Margin="10"
  48. HorizontalAlignment="Stretch"
  49. VerticalAlignment="Stretch"
  50. Items="{Binding _titleUpdates}">
  51. <ItemsControl.ItemTemplate>
  52. <DataTemplate>
  53. <RadioButton
  54. Padding="8,0"
  55. VerticalContentAlignment="Center"
  56. GroupName="Update"
  57. IsChecked="{Binding IsEnabled, Mode=TwoWay}">
  58. <Label
  59. Margin="0"
  60. VerticalAlignment="Center"
  61. Content="{Binding Label}"
  62. FontSize="12" />
  63. </RadioButton>
  64. </DataTemplate>
  65. </ItemsControl.ItemTemplate>
  66. </ItemsControl>
  67. </ScrollViewer>
  68. </Border>
  69. <DockPanel
  70. Grid.Row="3"
  71. Margin="0"
  72. HorizontalAlignment="Stretch">
  73. <DockPanel Margin="0" HorizontalAlignment="Left">
  74. <Button
  75. Name="AddButton"
  76. MinWidth="90"
  77. Margin="5"
  78. Command="{Binding Add}">
  79. <TextBlock Text="{locale:Locale SettingsTabGeneralAdd}" />
  80. </Button>
  81. <Button
  82. Name="RemoveButton"
  83. MinWidth="90"
  84. Margin="5"
  85. Command="{Binding RemoveSelected}">
  86. <TextBlock Text="{locale:Locale SettingsTabGeneralRemove}" />
  87. </Button>
  88. <Button
  89. Name="RemoveAllButton"
  90. MinWidth="90"
  91. Margin="5"
  92. Command="{Binding RemoveAll}">
  93. <TextBlock Text="{locale:Locale DlcManagerRemoveAllButton}" />
  94. </Button>
  95. </DockPanel>
  96. <DockPanel Margin="0" HorizontalAlignment="Right">
  97. <Button
  98. Name="SaveButton"
  99. MinWidth="90"
  100. Margin="5"
  101. Command="{Binding Save}">
  102. <TextBlock Text="{locale:Locale SettingsButtonSave}" />
  103. </Button>
  104. <Button
  105. Name="CancelButton"
  106. MinWidth="90"
  107. Margin="5"
  108. Command="{Binding Close}">
  109. <TextBlock Text="{locale:Locale InputDialogCancel}" />
  110. </Button>
  111. </DockPanel>
  112. </DockPanel>
  113. </Grid>
  114. </window:StyleableWindow>