|
34 | 34 | IsCancel="True" /> |
35 | 35 | </StackPanel> |
36 | 36 |
|
37 | | - <TabControl HorizontalContentAlignment="Left"> |
| 37 | + <TabControl HorizontalContentAlignment="Stretch"> |
38 | 38 | <TabItem Header="{x:Static resx:ResUI.TbSettingsCoreDns}"> |
39 | 39 | <DockPanel Margin="{StaticResource Margin8}"> |
40 | 40 | <StackPanel DockPanel.Dock="Top" Orientation="Horizontal"> |
|
90 | 90 | </StackPanel> |
91 | 91 | </WrapPanel> |
92 | 92 |
|
93 | | - <Grid Margin="{StaticResource Margin4}"> |
| 93 | + <HeaderedContentControl |
| 94 | + Margin="{StaticResource Margin4}" |
| 95 | + BorderBrush="Gray" |
| 96 | + BorderThickness="1" |
| 97 | + Header="HTTP/SOCKS"> |
94 | 98 | <TextBox |
95 | | - x:Name="txtnormalDNS" |
96 | | - Margin="{StaticResource Margin4}" |
| 99 | + Name="txtnormalDNS" |
97 | 100 | VerticalAlignment="Stretch" |
98 | | - BorderThickness="1" |
99 | 101 | Classes="TextArea" |
100 | | - TextWrapping="Wrap" |
101 | | - Watermark="HTTP/SOCKS" /> |
102 | | - </Grid> |
| 102 | + MinLines="10" |
| 103 | + TextWrapping="Wrap" /> |
| 104 | + </HeaderedContentControl> |
103 | 105 | </DockPanel> |
104 | 106 | </TabItem> |
105 | 107 |
|
|
144 | 146 |
|
145 | 147 | <Grid Margin="{StaticResource Margin4}" ColumnDefinitions="*,10,*"> |
146 | 148 |
|
147 | | - <TextBox |
148 | | - x:Name="txtnormalDNS2" |
| 149 | + <HeaderedContentControl |
149 | 150 | Grid.Column="0" |
150 | | - Width="400" |
151 | | - HorizontalAlignment="Stretch" |
152 | | - VerticalAlignment="Stretch" |
| 151 | + BorderBrush="Gray" |
153 | 152 | BorderThickness="1" |
154 | | - Classes="TextArea" |
155 | | - Margin="{StaticResource Margin4}" |
156 | | - TextWrapping="Wrap" |
157 | | - Watermark="HTTP/SOCKS" /> |
| 153 | + Header="HTTP/SOCKS"> |
| 154 | + <TextBox |
| 155 | + Name="txtnormalDNS2" |
| 156 | + VerticalAlignment="Stretch" |
| 157 | + Classes="TextArea" |
| 158 | + MinLines="10" |
| 159 | + TextWrapping="Wrap" /> |
| 160 | + </HeaderedContentControl> |
158 | 161 |
|
159 | 162 | <GridSplitter Grid.Column="1" HorizontalAlignment="Stretch" /> |
160 | 163 |
|
161 | | - <TextBox |
162 | | - x:Name="txttunDNS2" |
| 164 | + <HeaderedContentControl |
163 | 165 | Grid.Column="2" |
164 | | - Width="400" |
165 | | - HorizontalAlignment="Stretch" |
166 | | - VerticalAlignment="Stretch" |
| 166 | + BorderBrush="Gray" |
167 | 167 | BorderThickness="1" |
168 | | - Classes="TextArea" |
169 | | - Margin="{StaticResource Margin4}" |
170 | | - TextWrapping="Wrap" |
171 | | - Watermark="{x:Static resx:ResUI.TbSettingsTunMode}" /> |
| 168 | + Header="{x:Static resx:ResUI.TbSettingsTunMode}"> |
| 169 | + <TextBox |
| 170 | + Name="txttunDNS2" |
| 171 | + VerticalAlignment="Stretch" |
| 172 | + Classes="TextArea" |
| 173 | + MinLines="10" |
| 174 | + TextWrapping="Wrap" /> |
| 175 | + </HeaderedContentControl> |
| 176 | + |
172 | 177 | </Grid> |
173 | 178 | </DockPanel> |
174 | 179 | </TabItem> |
|
0 commit comments