LogoutView.xaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <Window x:Class="Venus_MainPages.Views.LogoutView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Venus_MainPages.Views"
  7. WindowStyle="None" AllowsTransparency="True" Background="Transparent"
  8. mc:Ignorable="d"
  9. ResizeMode="NoResize"
  10. xmlns:userControl="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  11. xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
  12. WindowStartupLocation="CenterScreen"
  13. Width="500" Height="550">
  14. <Grid x:Name="grid1">
  15. <Border Width="500" Height="550" Background="#FFFFFF" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" BorderBrush="Silver" CornerRadius="15,15,15,15">
  16. <Grid Margin="50 0 0 0">
  17. <Grid.RowDefinitions>
  18. <RowDefinition/>
  19. <RowDefinition/>
  20. <RowDefinition Height="30"/>
  21. <RowDefinition Height="20"/>
  22. <RowDefinition/>
  23. <RowDefinition Height="20"/>
  24. <RowDefinition/>
  25. <RowDefinition />
  26. <RowDefinition/>
  27. <RowDefinition />
  28. </Grid.RowDefinitions>
  29. <Image Source="Pack://application:,,,/Venus_Themes;Component/Resources/JetLogo.png" HorizontalAlignment="Left" Width="154" Height="14"></Image>
  30. <TextBlock Grid.Row="1" Text="Logout" FontSize="42" FontFamily="D-DIN" Foreground="#222222" FontWeight="Bold"/>
  31. <TextBlock Grid.Row="2" Text="Please logout to your account." FontSize="16" FontFamily="D-DIN" Foreground="#999999"/>
  32. <TextBlock Grid.Row="3" Text="UserName" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
  33. <TextBox Grid.Row="4" x:Name="UserTextBox" Height="40" Width="400" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" VerticalContentAlignment="Center" Padding="20 0 0 0" Foreground="Gray" Text="admin" KeyDown="UserTextBox_KeyDown">
  34. <TextBox.Resources>
  35. <VisualBrush x:Key="WaterText" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Center" AlignmentY="Center">
  36. <VisualBrush.Visual>
  37. <TextBlock Text="please enter your name"/>
  38. </VisualBrush.Visual>
  39. </VisualBrush>
  40. <Style TargetType="{x:Type Border}">
  41. <Setter Property="CornerRadius" Value="8"/>
  42. <Setter Property="BorderBrush" Value="#c1d0dc"/>
  43. </Style>
  44. </TextBox.Resources>
  45. <TextBox.Style>
  46. <Style TargetType="TextBox">
  47. <Style.Triggers>
  48. <Trigger Property="Text" Value="{x:Null}">
  49. <Setter Property="Background" Value="{StaticResource WaterText}"/>
  50. </Trigger>
  51. <Trigger Property="Text" Value="">
  52. <Setter Property="Background" Value="{StaticResource WaterText}"/>
  53. </Trigger>
  54. </Style.Triggers>
  55. </Style>
  56. </TextBox.Style>
  57. </TextBox>
  58. <TextBlock Grid.Row="5" Text="Password" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
  59. <customControls:CustomPasswordBox x:Name="PassWordTextBox" Grid.Row="6" Height="40" Width="400" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" VerticalContentAlignment="Center" Padding="20 5 0 0" Text="admin" Foreground="Gray" KeyDown="PassWordTextBox_KeyDown">
  60. <customControls:CustomPasswordBox.Resources>
  61. <VisualBrush x:Key="WaterText" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Center" AlignmentY="Center">
  62. <VisualBrush.Visual>
  63. <TextBlock Text="please enter your password"/>
  64. </VisualBrush.Visual>
  65. </VisualBrush>
  66. <Style TargetType="{x:Type Border}">
  67. <Setter Property="CornerRadius" Value="8"/>
  68. <Setter Property="BorderBrush" Value="#c1d0dc"/>
  69. </Style>
  70. </customControls:CustomPasswordBox.Resources>
  71. <customControls:CustomPasswordBox.Style>
  72. <Style TargetType="TextBox">
  73. <Style.Triggers>
  74. <Trigger Property="Text" Value="{x:Null}">
  75. <Setter Property="Background" Value="{StaticResource WaterText}"/>
  76. </Trigger>
  77. <Trigger Property="Text" Value="">
  78. <Setter Property="Background" Value="{StaticResource WaterText}"/>
  79. </Trigger>
  80. </Style.Triggers>
  81. </Style>
  82. </customControls:CustomPasswordBox.Style>
  83. </customControls:CustomPasswordBox>
  84. <TextBlock Grid.Row="7" Text="Role" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
  85. <customControls:CustomComBobox x:Name="MangerComboBox" Grid.Row="8" Height="40" Width="400" HorizontalAlignment="Left" VerticalAlignment="Top" CustomCornerRadius="4" Margin="0 -30 0 0" SelectedIndex="0" FontSize="16" BorderBrush="Silver" BorderThickness="1">
  86. <ComboBoxItem>Manager</ComboBoxItem>
  87. <ComboBoxItem>Engineer</ComboBoxItem>
  88. <ComboBoxItem>Technician</ComboBoxItem>
  89. <ComboBoxItem>Operator</ComboBoxItem>
  90. </customControls:CustomComBobox>
  91. <Button Grid.Row="9" Width="400" Height="40" x:Name="logButton" Content="Logout" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Login_Click" FontSize="18" Margin="0 -10 0 0"/>
  92. </Grid>
  93. </Border>
  94. <userControl:PathButton Width="15" Height="15" Cursor="Hand"
  95. PathData="{StaticResource Icon_Close}"
  96. Margin="450 -500 0 0"
  97. DefaultFillBrush="DimGray"
  98. MouseOverBrush="Red"
  99. IsPressedBrush="Blue" Click="Close_Click"/>
  100. </Grid>
  101. </Window>