SetPwdWindow.xaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <Window x:Class="AIRS.SetPwdWindow"
  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:AIRS"
  7. mc:Ignorable="d"
  8. Title="LoginWindow" Height="280" Width="460" WindowStyle="None" Background="#FF18253C" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
  9. <Grid>
  10. <Label Content="修改密码" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Foreground="White" FontSize="20" FontWeight="Bold"/>
  11. <Canvas Margin="0,38,-0.4,56.6" Background="#FFD7D7D7" >
  12. <Label Content="原密码:" Canvas.Left="35" Canvas.Top="20" FontSize="20" FontWeight="Bold"/>
  13. <Label Content="新密码:" Canvas.Left="35" Canvas.Top="70" FontSize="20" FontWeight="Bold"/>
  14. <Label Content="确认密码:" Canvas.Left="14" Canvas.Top="120" FontSize="20" FontWeight="Bold"/>
  15. <PasswordBox x:Name="lodpassword" Canvas.Left="142" Canvas.Top="23" Width="260" Height="30" MaxLength="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
  16. <PasswordBox x:Name="newpassword" Canvas.Left="142" Canvas.Top="73" Width="260" Height="30" MaxLength="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
  17. <PasswordBox x:Name="confirmpassword" Canvas.Left="142" Canvas.Top="123" Width="260" Height="30" MaxLength="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
  18. </Canvas>
  19. <Button Click="BtnCancle_Click" x:Name="BtnCancle" Content="取消" HorizontalAlignment="Left" Margin="301,234,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" >
  20. <Button.Template >
  21. <ControlTemplate TargetType="{x:Type Button}" >
  22. <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
  23. <Border.Background>#FF169BD5</Border.Background>
  24. <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
  25. </Border>
  26. </ControlTemplate>
  27. </Button.Template>
  28. </Button>
  29. <Button x:Name="BtnOK" Click="BtnOK_Click" Content="确定" HorizontalAlignment="Left" Margin="150,234,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5">
  30. <Button.Template >
  31. <ControlTemplate TargetType="{x:Type Button}" >
  32. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
  33. <Border.Background>
  34. <Brush>#FF169BD5</Brush>
  35. </Border.Background>
  36. <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  37. </Border>
  38. </ControlTemplate>
  39. </Button.Template>
  40. </Button>
  41. </Grid>
  42. </Window>