PasswordPromptWindow.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <Window x:Class="NetTool.Client.PasswordPromptWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="输入管理密码"
  5. Width="420"
  6. SizeToContent="Height"
  7. ResizeMode="NoResize"
  8. WindowStartupLocation="CenterOwner">
  9. <Grid Margin="20,20,20,24">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto" />
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="Auto" />
  14. </Grid.RowDefinitions>
  15. <TextBlock x:Name="PromptTextBlock"
  16. Foreground="#111827"
  17. TextWrapping="Wrap" />
  18. <PasswordBox x:Name="PasswordBox"
  19. Grid.Row="1"
  20. Margin="0,16,0,0"
  21. MinHeight="36"
  22. VerticalContentAlignment="Center" />
  23. <Button x:Name="ClearPasswordButton"
  24. Grid.Row="2"
  25. Margin="0,20,0,0"
  26. Padding="0"
  27. HorizontalAlignment="Left"
  28. VerticalAlignment="Center"
  29. Background="Transparent"
  30. BorderThickness="0"
  31. Click="ClearPasswordButton_OnClick"
  32. Content="清除已保存密码"
  33. Cursor="Hand"
  34. FontSize="12"
  35. Foreground="#6B7280" />
  36. <StackPanel Grid.Row="2"
  37. Margin="0,20,0,0"
  38. HorizontalAlignment="Right"
  39. Orientation="Horizontal">
  40. <Button MinWidth="78"
  41. Height="36"
  42. Click="CancelButton_OnClick"
  43. Content="取消" />
  44. <Button MinWidth="78"
  45. Height="36"
  46. Margin="10,0,0,0"
  47. Style="{StaticResource PrimaryButtonStyle}"
  48. Click="OkButton_OnClick"
  49. Content="连接" />
  50. </StackPanel>
  51. </Grid>
  52. </Window>