mirror of
https://github.com/2dust/v2rayN.git
synced 2025-11-01 21:12:53 +00:00
70 lines
2.5 KiB
XML
70 lines
2.5 KiB
XML
<UserControl
|
|
x:Class="v2rayN.Desktop.Views.SudoPasswordInputView"
|
|
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"
|
|
d:DesignHeight="200"
|
|
d:DesignWidth="400"
|
|
mc:Ignorable="d">
|
|
<DockPanel Margin="{StaticResource Margin8}">
|
|
|
|
<Border
|
|
Margin="{StaticResource Margin4}"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Bottom"
|
|
Theme="{DynamicResource CardBorder}">
|
|
|
|
<StackPanel
|
|
Margin="{StaticResource Margin4}"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="btnSave"
|
|
Width="100"
|
|
Content="{x:Static resx:ResUI.TbConfirm}"
|
|
Cursor="Hand"
|
|
IsDefault="True" />
|
|
<Button
|
|
x:Name="btnCancel"
|
|
Width="100"
|
|
Margin="{StaticResource MarginLr8}"
|
|
Content="{x:Static resx:ResUI.TbCancel}"
|
|
Cursor="Hand"
|
|
IsCancel="True" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border
|
|
Margin="{StaticResource Margin4}"
|
|
VerticalAlignment="Center"
|
|
Theme="{DynamicResource CardBorder}">
|
|
|
|
<Grid ColumnDefinitions="Auto,400" RowDefinitions="Auto,Auto,Auto">
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="{StaticResource Margin4}"
|
|
VerticalAlignment="Center"
|
|
Text="{x:Static resx:ResUI.TbSettingsLinuxSudoPassword}" />
|
|
|
|
<TextBox
|
|
x:Name="txtPassword"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="{StaticResource Margin4}"
|
|
Classes="revealPasswordButton"
|
|
Focusable="True" />
|
|
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="{StaticResource Margin4}"
|
|
VerticalAlignment="Center"
|
|
Text="{x:Static resx:ResUI.TbSettingsLinuxSudoPasswordTip}"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
</Border>
|
|
</DockPanel>
|
|
</UserControl>
|