PasswordDialog.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <wpf:ThemableWindow x:Class="InABox.Wpf.Editors.PasswordDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:InABox.Wpf.Editors"
  7. xmlns:wpf="clr-namespace:InABox.Wpf"
  8. mc:Ignorable="d"
  9. Title="Set Password"
  10. SizeToContent="WidthAndHeight">
  11. <Grid Margin="5">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="Auto" />
  18. <ColumnDefinition Width="Auto" />
  19. </Grid.ColumnDefinitions>
  20. <Label Grid.Row="0"
  21. Grid.Column="0"
  22. VerticalContentAlignment="Center"
  23. Content="Enter Password:"></Label>
  24. <PasswordBox Grid.Row="0"
  25. Grid.Column="1"
  26. MinWidth="200"
  27. Height="30"
  28. VerticalContentAlignment="Center"
  29. Background="LightYellow"
  30. x:Name="PasswordEditor"></PasswordBox>
  31. <DockPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
  32. <Button DockPanel.Dock="Right" Content="Cancel" Margin="5,5,0,0" Width="80" Height="30" Click="Cancel_Click"></Button>
  33. <Button DockPanel.Dock="Right" Content="Ok" Margin="5,5,0,0" Width="80" Height="30" Click="OK_Click"></Button>
  34. <Label DockPanel.Dock="Left"></Label>
  35. </DockPanel>
  36. </Grid>
  37. </wpf:ThemableWindow>