2025-02-20 10:34:25 +00:00
|
|
|
<Window
|
2024-08-29 07:48:51 +00:00
|
|
|
x:Class="v2rayN.Desktop.Views.DNSSettingWindow"
|
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
|
|
|
|
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
|
|
|
|
Title="{x:Static resx:ResUI.menuDNSSetting}"
|
2024-12-19 05:36:45 +00:00
|
|
|
Width="900"
|
|
|
|
Height="600"
|
2024-08-29 07:48:51 +00:00
|
|
|
x:DataType="vms:DNSSettingViewModel"
|
|
|
|
ShowInTaskbar="False"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
mc:Ignorable="d">
|
2025-02-20 10:34:25 +00:00
|
|
|
<DockPanel Margin="{StaticResource Margin8}">
|
2024-08-29 07:48:51 +00:00
|
|
|
<StackPanel
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
DockPanel.Dock="Bottom"
|
|
|
|
Orientation="Horizontal">
|
|
|
|
<Button
|
|
|
|
x:Name="btnSave"
|
|
|
|
Width="100"
|
|
|
|
Content="{x:Static resx:ResUI.TbConfirm}"
|
2024-10-19 06:30:14 +00:00
|
|
|
Cursor="Hand"
|
|
|
|
IsDefault="True" />
|
2024-08-29 07:48:51 +00:00
|
|
|
<Button
|
|
|
|
x:Name="btnCancel"
|
|
|
|
Width="100"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource MarginLr8}"
|
2024-08-29 07:48:51 +00:00
|
|
|
Content="{x:Static resx:ResUI.TbCancel}"
|
2024-10-19 06:30:14 +00:00
|
|
|
Cursor="Hand"
|
|
|
|
IsCancel="True" />
|
2024-08-29 07:48:51 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
2025-06-19 03:24:33 +00:00
|
|
|
<TabControl HorizontalContentAlignment="Stretch">
|
2024-08-29 07:48:51 +00:00
|
|
|
<TabItem Header="{x:Static resx:ResUI.TbSettingsCoreDns}">
|
2025-02-20 10:34:25 +00:00
|
|
|
<DockPanel Margin="{StaticResource Margin8}">
|
2024-08-29 07:48:51 +00:00
|
|
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
|
|
|
|
<TextBlock
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{x:Static resx:ResUI.TbSettingsRemoteDNS}" />
|
|
|
|
|
2025-02-20 10:34:25 +00:00
|
|
|
<TextBlock Margin="{StaticResource Margin4}" VerticalAlignment="Center">
|
2024-09-17 09:26:01 +00:00
|
|
|
<HyperlinkButton Classes="WithIcon" Click="linkDnsObjectDoc_Click">
|
2024-08-29 07:48:51 +00:00
|
|
|
<TextBlock Text="{x:Static resx:ResUI.TbDnsObjectDoc}" />
|
2024-09-17 09:26:01 +00:00
|
|
|
</HyperlinkButton>
|
2024-08-29 07:48:51 +00:00
|
|
|
</TextBlock>
|
|
|
|
<Button
|
|
|
|
x:Name="btnImportDefConfig4V2ray"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
Content="{x:Static resx:ResUI.TbSettingDnsImportDefConfig}"
|
|
|
|
Cursor="Hand" />
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<WrapPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{x:Static resx:ResUI.TbSettingsUseSystemHosts}" />
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Name="togUseSystemHosts"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
|
|
|
HorizontalAlignment="Left" />
|
2024-08-29 07:48:51 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{x:Static resx:ResUI.TbSettingsDomainStrategy4Freedom}" />
|
|
|
|
<ComboBox
|
|
|
|
x:Name="cmbdomainStrategy4Freedom"
|
|
|
|
Width="150"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}" />
|
2024-08-29 07:48:51 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{x:Static resx:ResUI.TbSettingsDomainDNSAddress}" />
|
|
|
|
<ComboBox
|
|
|
|
x:Name="cmbdomainDNSAddress"
|
|
|
|
Width="150"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}" />
|
2024-08-29 07:48:51 +00:00
|
|
|
</StackPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
|
2025-06-19 03:24:33 +00:00
|
|
|
<HeaderedContentControl
|
|
|
|
Margin="{StaticResource Margin4}"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1"
|
|
|
|
Header="HTTP/SOCKS">
|
2024-09-27 12:25:06 +00:00
|
|
|
<TextBox
|
2025-06-19 03:24:33 +00:00
|
|
|
Name="txtnormalDNS"
|
2024-09-27 12:25:06 +00:00
|
|
|
VerticalAlignment="Stretch"
|
2025-02-20 10:34:25 +00:00
|
|
|
Classes="TextArea"
|
2025-06-19 03:24:33 +00:00
|
|
|
MinLines="10"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
</HeaderedContentControl>
|
2024-08-29 07:48:51 +00:00
|
|
|
</DockPanel>
|
|
|
|
</TabItem>
|
|
|
|
|
|
|
|
<TabItem Header="{x:Static resx:ResUI.TbSettingsCoreDnsSingbox}">
|
2025-02-20 10:34:25 +00:00
|
|
|
<DockPanel Margin="{StaticResource Margin8}">
|
2024-08-29 07:48:51 +00:00
|
|
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
|
2025-02-20 10:34:25 +00:00
|
|
|
<TextBlock Margin="{StaticResource Margin4}" VerticalAlignment="Center">
|
2024-09-17 09:26:01 +00:00
|
|
|
<HyperlinkButton Classes="WithIcon" Click="linkDnsSingboxObjectDoc_Click">
|
2024-08-29 07:48:51 +00:00
|
|
|
<TextBlock Text="{x:Static resx:ResUI.TbDnsSingboxObjectDoc}" />
|
2024-09-17 09:26:01 +00:00
|
|
|
</HyperlinkButton>
|
2024-08-29 07:48:51 +00:00
|
|
|
</TextBlock>
|
|
|
|
<Button
|
|
|
|
x:Name="btnImportDefConfig4Singbox"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
Content="{x:Static resx:ResUI.TbSettingDnsImportDefConfig}"
|
|
|
|
Cursor="Hand" />
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<WrapPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{x:Static resx:ResUI.TbSettingsDomainStrategy4Out}" />
|
|
|
|
<ComboBox
|
|
|
|
x:Name="cmbdomainStrategy4Out"
|
|
|
|
Width="150"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}" />
|
2024-08-29 07:48:51 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}"
|
2024-08-29 07:48:51 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="{x:Static resx:ResUI.TbSettingsDomainDNSAddress}" />
|
|
|
|
<ComboBox
|
|
|
|
x:Name="cmbdomainDNSAddress2"
|
|
|
|
Width="150"
|
2025-02-20 10:34:25 +00:00
|
|
|
Margin="{StaticResource Margin4}" />
|
2024-08-29 07:48:51 +00:00
|
|
|
</StackPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
|
2025-02-20 10:34:25 +00:00
|
|
|
<Grid Margin="{StaticResource Margin4}" ColumnDefinitions="*,10,*">
|
2024-08-29 07:48:51 +00:00
|
|
|
|
2025-06-19 03:24:33 +00:00
|
|
|
<HeaderedContentControl
|
2024-08-29 07:48:51 +00:00
|
|
|
Grid.Column="0"
|
2025-06-19 03:24:33 +00:00
|
|
|
BorderBrush="Gray"
|
2024-08-29 07:48:51 +00:00
|
|
|
BorderThickness="1"
|
2025-06-19 03:24:33 +00:00
|
|
|
Header="HTTP/SOCKS">
|
|
|
|
<TextBox
|
|
|
|
Name="txtnormalDNS2"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Classes="TextArea"
|
|
|
|
MinLines="10"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
</HeaderedContentControl>
|
2024-08-29 07:48:51 +00:00
|
|
|
|
|
|
|
<GridSplitter Grid.Column="1" HorizontalAlignment="Stretch" />
|
|
|
|
|
2025-06-19 03:24:33 +00:00
|
|
|
<HeaderedContentControl
|
2024-08-29 07:48:51 +00:00
|
|
|
Grid.Column="2"
|
2025-06-19 03:24:33 +00:00
|
|
|
BorderBrush="Gray"
|
2024-08-29 07:48:51 +00:00
|
|
|
BorderThickness="1"
|
2025-06-19 03:24:33 +00:00
|
|
|
Header="{x:Static resx:ResUI.TbSettingsTunMode}">
|
|
|
|
<TextBox
|
|
|
|
Name="txttunDNS2"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Classes="TextArea"
|
|
|
|
MinLines="10"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
</HeaderedContentControl>
|
|
|
|
|
2024-08-29 07:48:51 +00:00
|
|
|
</Grid>
|
|
|
|
</DockPanel>
|
|
|
|
</TabItem>
|
|
|
|
</TabControl>
|
|
|
|
</DockPanel>
|
2025-02-20 10:34:25 +00:00
|
|
|
</Window>
|