SettingsCPUView.axaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsCPUView"
  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:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  9. mc:Ignorable="d"
  10. x:CompileBindings="True"
  11. x:DataType="viewModels:SettingsViewModel">
  12. <Design.DataContext>
  13. <viewModels:SettingsViewModel />
  14. </Design.DataContext>
  15. <ScrollViewer
  16. Name="CpuPage"
  17. HorizontalAlignment="Stretch"
  18. VerticalAlignment="Stretch"
  19. HorizontalScrollBarVisibility="Disabled"
  20. VerticalScrollBarVisibility="Auto">
  21. <Border Classes="settings">
  22. <StackPanel
  23. Margin="10"
  24. HorizontalAlignment="Stretch"
  25. Orientation="Vertical"
  26. Spacing="10">
  27. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuCache}" />
  28. <StackPanel
  29. Margin="10,0,0,0"
  30. HorizontalAlignment="Stretch"
  31. Orientation="Vertical">
  32. <CheckBox IsChecked="{Binding EnablePptc}">
  33. <TextBlock Text="{locale:Locale SettingsTabSystemEnablePptc}"
  34. ToolTip.Tip="{locale:Locale PptcToggleTooltip}" />
  35. </CheckBox>
  36. </StackPanel>
  37. <Separator Height="1" />
  38. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuMemory}" />
  39. <StackPanel
  40. Margin="10,0,0,0"
  41. HorizontalAlignment="Stretch"
  42. Orientation="Vertical">
  43. <StackPanel Orientation="Horizontal">
  44. <TextBlock VerticalAlignment="Center"
  45. Text="{locale:Locale SettingsTabSystemMemoryManagerMode}"
  46. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  47. Width="250" />
  48. <ComboBox SelectedIndex="{Binding MemoryMode}"
  49. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  50. HorizontalContentAlignment="Left"
  51. Width="350">
  52. <ComboBoxItem
  53. ToolTip.Tip="{locale:Locale MemoryManagerSoftwareTooltip}">
  54. <TextBlock
  55. Text="{locale:Locale SettingsTabSystemMemoryManagerModeSoftware}" />
  56. </ComboBoxItem>
  57. <ComboBoxItem
  58. ToolTip.Tip="{locale:Locale MemoryManagerHostTooltip}">
  59. <TextBlock Text="{locale:Locale SettingsTabSystemMemoryManagerModeHost}" />
  60. </ComboBoxItem>
  61. <ComboBoxItem
  62. ToolTip.Tip="{locale:Locale MemoryManagerUnsafeTooltip}">
  63. <TextBlock
  64. Text="{locale:Locale SettingsTabSystemMemoryManagerModeHostUnchecked}" />
  65. </ComboBoxItem>
  66. </ComboBox>
  67. </StackPanel>
  68. <CheckBox IsChecked="{Binding UseHypervisor}"
  69. IsVisible="{Binding IsHypervisorAvailable}"
  70. ToolTip.Tip="{locale:Locale UseHypervisorTooltip}">
  71. <TextBlock Text="{locale:Locale SettingsTabSystemUseHypervisor}"
  72. ToolTip.Tip="{locale:Locale UseHypervisorTooltip}" />
  73. </CheckBox>
  74. </StackPanel>
  75. </StackPanel>
  76. </Border>
  77. </ScrollViewer>
  78. </UserControl>