SettingsCPUView.axaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
  8. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  9. xmlns:helper="clr-namespace:Ryujinx.Common.Helper;assembly=Ryujinx.Common"
  10. mc:Ignorable="d"
  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="{ext:Locale SettingsTabCpuCache}" />
  28. <StackPanel
  29. Margin="10,0,0,0"
  30. HorizontalAlignment="Stretch"
  31. Orientation="Vertical">
  32. <CheckBox IsChecked="{Binding EnablePptc}">
  33. <TextBlock Text="{ext:Locale SettingsTabSystemEnablePptc}"
  34. ToolTip.Tip="{ext:Locale PptcToggleTooltip}" />
  35. </CheckBox>
  36. <CheckBox IsChecked="{Binding EnableLowPowerPptc}">
  37. <TextBlock Text="{ext:Locale SettingsTabSystemEnableLowPowerPptc}"
  38. ToolTip.Tip="{ext:Locale LowPowerPptcToggleTooltip}" />
  39. </CheckBox>
  40. </StackPanel>
  41. <Separator Height="1" />
  42. <TextBlock Classes="h1" Text="{ext:Locale SettingsTabCpuMemory}" />
  43. <StackPanel
  44. Margin="10,0,0,0"
  45. HorizontalAlignment="Stretch"
  46. Orientation="Vertical">
  47. <StackPanel Orientation="Horizontal">
  48. <TextBlock VerticalAlignment="Center"
  49. Text="{ext:Locale SettingsTabSystemMemoryManagerMode}"
  50. ToolTip.Tip="{ext:Locale MemoryManagerTooltip}"
  51. Width="250" />
  52. <ComboBox SelectedIndex="{Binding MemoryMode}"
  53. ToolTip.Tip="{ext:Locale MemoryManagerTooltip}"
  54. HorizontalContentAlignment="Left"
  55. Width="350">
  56. <ComboBoxItem
  57. ToolTip.Tip="{ext:Locale MemoryManagerSoftwareTooltip}">
  58. <TextBlock
  59. Text="{ext:Locale SettingsTabSystemMemoryManagerModeSoftware}" />
  60. </ComboBoxItem>
  61. <ComboBoxItem
  62. ToolTip.Tip="{ext:Locale MemoryManagerHostTooltip}">
  63. <TextBlock Text="{ext:Locale SettingsTabSystemMemoryManagerModeHost}" />
  64. </ComboBoxItem>
  65. <ComboBoxItem
  66. ToolTip.Tip="{ext:Locale MemoryManagerUnsafeTooltip}">
  67. <TextBlock
  68. Text="{ext:Locale SettingsTabSystemMemoryManagerModeHostUnchecked}" />
  69. </ComboBoxItem>
  70. </ComboBox>
  71. </StackPanel>
  72. <CheckBox IsChecked="{Binding UseHypervisor}"
  73. IsVisible="{x:Static helper:RunningPlatform.IsArmMac}"
  74. ToolTip.Tip="{ext:Locale UseHypervisorTooltip}">
  75. <TextBlock Text="{ext:Locale SettingsTabSystemUseHypervisor}"
  76. ToolTip.Tip="{ext:Locale UseHypervisorTooltip}" />
  77. </CheckBox>
  78. </StackPanel>
  79. </StackPanel>
  80. </Border>
  81. </ScrollViewer>
  82. </UserControl>