TitleUpdateWindow.axaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. Focusable="True">
  19. <Grid Margin="15">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="*" />
  24. <RowDefinition Height="Auto" />
  25. </Grid.RowDefinitions>
  26. <TextBlock
  27. Name="Heading"
  28. Grid.Row="1"
  29. MaxWidth="500"
  30. Margin="20,15,20,20"
  31. HorizontalAlignment="Center"
  32. VerticalAlignment="Center"
  33. LineHeight="18"
  34. TextAlignment="Center"
  35. TextWrapping="Wrap" />
  36. <Border
  37. Grid.Row="2"
  38. Margin="5"
  39. HorizontalAlignment="Stretch"
  40. VerticalAlignment="Stretch"
  41. BorderBrush="Gray"
  42. BorderThickness="1">
  43. <ScrollViewer
  44. VerticalAlignment="Stretch"
  45. HorizontalScrollBarVisibility="Auto"
  46. VerticalScrollBarVisibility="Auto">
  47. <ItemsControl
  48. Margin="10"
  49. HorizontalAlignment="Stretch"
  50. VerticalAlignment="Stretch"
  51. Items="{Binding _titleUpdates}">
  52. <ItemsControl.ItemTemplate>
  53. <DataTemplate>
  54. <RadioButton
  55. Padding="8,0"
  56. VerticalContentAlignment="Center"
  57. GroupName="Update"
  58. IsChecked="{Binding IsEnabled, Mode=TwoWay}">
  59. <Label
  60. Margin="0"
  61. VerticalAlignment="Center"
  62. Content="{Binding Label}"
  63. FontSize="12" />
  64. </RadioButton>
  65. </DataTemplate>
  66. </ItemsControl.ItemTemplate>
  67. </ItemsControl>
  68. </ScrollViewer>
  69. </Border>
  70. <DockPanel
  71. Grid.Row="3"
  72. Margin="0"
  73. HorizontalAlignment="Stretch">
  74. <DockPanel Margin="0" HorizontalAlignment="Left">
  75. <Button
  76. Name="AddButton"
  77. MinWidth="90"
  78. Margin="5"
  79. Command="{Binding Add}">
  80. <TextBlock Text="{locale:Locale SettingsTabGeneralAdd}" />
  81. </Button>
  82. <Button
  83. Name="RemoveButton"
  84. MinWidth="90"
  85. Margin="5"
  86. Command="{Binding RemoveSelected}">
  87. <TextBlock Text="{locale:Locale SettingsTabGeneralRemove}" />
  88. </Button>
  89. <Button
  90. Name="RemoveAllButton"
  91. MinWidth="90"
  92. Margin="5"
  93. Command="{Binding RemoveAll}">
  94. <TextBlock Text="{locale:Locale DlcManagerRemoveAllButton}" />
  95. </Button>
  96. </DockPanel>
  97. <DockPanel Margin="0" HorizontalAlignment="Right">
  98. <Button
  99. Name="SaveButton"
  100. MinWidth="90"
  101. Margin="5"
  102. Command="{Binding Save}">
  103. <TextBlock Text="{locale:Locale SettingsButtonSave}" />
  104. </Button>
  105. <Button
  106. Name="CancelButton"
  107. MinWidth="90"
  108. Margin="5"
  109. Command="{Binding Close}">
  110. <TextBlock Text="{locale:Locale InputDialogCancel}" />
  111. </Button>
  112. </DockPanel>
  113. </DockPanel>
  114. </Grid>
  115. </window:StyleableWindow>