SettingsNetworkView.axaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsNetworkView"
  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="NetworkPage"
  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 SettingsTabNetworkConnection}" />
  28. <CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableInternetAccess}">
  29. <TextBlock Text="{locale:Locale SettingsTabSystemEnableInternetAccess}"
  30. ToolTip.Tip="{locale:Locale EnableInternetAccessTooltip}" />
  31. </CheckBox>
  32. <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
  33. <TextBlock VerticalAlignment="Center"
  34. Text="{locale:Locale SettingsTabNetworkInterface}"
  35. ToolTip.Tip="{locale:Locale NetworkInterfaceTooltip}"
  36. Width="200" />
  37. <ComboBox SelectedIndex="{Binding NetworkInterfaceIndex}"
  38. ToolTip.Tip="{locale:Locale NetworkInterfaceTooltip}"
  39. HorizontalContentAlignment="Left"
  40. Items="{Binding NetworkInterfaceList}"
  41. Width="250" />
  42. </StackPanel>
  43. </StackPanel>
  44. </Border>
  45. </ScrollViewer>
  46. </UserControl>