| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <Window x:Class="NetTool.Client.PasswordPromptWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="输入管理密码"
- Width="420"
- SizeToContent="Height"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterOwner">
- <Grid Margin="20,20,20,24">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <TextBlock x:Name="PromptTextBlock"
- Foreground="#111827"
- TextWrapping="Wrap" />
- <PasswordBox x:Name="PasswordBox"
- Grid.Row="1"
- Margin="0,16,0,0"
- MinHeight="36"
- VerticalContentAlignment="Center" />
- <Button x:Name="ClearPasswordButton"
- Grid.Row="2"
- Margin="0,20,0,0"
- Padding="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- Click="ClearPasswordButton_OnClick"
- Content="清除已保存密码"
- Cursor="Hand"
- FontSize="12"
- Foreground="#6B7280" />
- <StackPanel Grid.Row="2"
- Margin="0,20,0,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Button MinWidth="78"
- Height="36"
- Click="CancelButton_OnClick"
- Content="取消" />
- <Button MinWidth="78"
- Height="36"
- Margin="10,0,0,0"
- Style="{StaticResource PrimaryButtonStyle}"
- Click="OkButton_OnClick"
- Content="连接" />
- </StackPanel>
- </Grid>
- </Window>
|