TitleUpdateWindow.axaml 4.0 KB

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