|
@@ -11,97 +11,100 @@
|
|
|
xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
Width="1920" Height="1080">
|
|
|
- <Grid>
|
|
|
- <Image Source="Pack://application:,,,/Venus_Themes;Component/Resources/Login.png" Stretch="Fill"/>
|
|
|
- <Border Width="500" Height="650" Background="#FFFFFF" Margin="100 200 0 0" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" BorderBrush="Silver" CornerRadius="15,15,15,15">
|
|
|
- <Grid Margin="50 0 0 0">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Image Source="Pack://application:,,,/Venus_Themes;Component/Resources/JetLogo.png" HorizontalAlignment="Left" Width="154" Height="14"></Image>
|
|
|
- <TextBlock Grid.Row="1" Text="Login" FontSize="42" FontFamily="D-DIN" Foreground="#222222" FontWeight="Bold"/>
|
|
|
- <TextBlock Grid.Row="2" Text="Welcome back! Please login to your account." FontSize="16" FontFamily="D-DIN" Foreground="#999999"/>
|
|
|
- <TextBlock Grid.Row="3" Text="UserName" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
|
|
|
- <TextBox x:Name="UserTextBox" Grid.Row="4" Height="40" Width="400" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" VerticalContentAlignment="Center" Padding="20 0 0 0" Foreground="Gray" Text="admin" KeyDown="UserTextBox_KeyDown">
|
|
|
- <TextBox.Resources>
|
|
|
- <VisualBrush x:Key="WaterText" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Center" AlignmentY="Center">
|
|
|
- <VisualBrush.Visual>
|
|
|
- <TextBlock Text="please enter your name"/>
|
|
|
- </VisualBrush.Visual>
|
|
|
- </VisualBrush>
|
|
|
- <Style TargetType="{x:Type Border}">
|
|
|
- <Setter Property="CornerRadius" Value="8"/>
|
|
|
- <Setter Property="BorderBrush" Value="#c1d0dc"/>
|
|
|
- </Style>
|
|
|
+ <Viewbox>
|
|
|
+ <Grid>
|
|
|
+ <Image Source="Pack://application:,,,/Venus_Themes;Component/Resources/Login.png" Stretch="Fill" Width="1920" Height="1080"/>
|
|
|
+ <Border Width="500" Height="650" Background="#FFFFFF" Margin="100 200 0 0" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" BorderBrush="Silver" CornerRadius="15,15,15,15">
|
|
|
+ <Grid Margin="50 0 0 0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Image Source="Pack://application:,,,/Venus_Themes;Component/Resources/JetLogo.png" HorizontalAlignment="Left" Width="154" Height="14"></Image>
|
|
|
+ <TextBlock Grid.Row="1" Text="Login" FontSize="42" FontFamily="D-DIN" Foreground="#222222" FontWeight="Bold"/>
|
|
|
+ <TextBlock Grid.Row="2" Text="Welcome back! Please login to your account." FontSize="16" FontFamily="D-DIN" Foreground="#999999"/>
|
|
|
+ <TextBlock Grid.Row="3" Text="UserName" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
|
|
|
+ <TextBox x:Name="UserTextBox" Grid.Row="4" Height="40" Width="400" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" VerticalContentAlignment="Center" Padding="20 0 0 0" Foreground="Gray" Text="admin" KeyDown="UserTextBox_KeyDown">
|
|
|
+ <TextBox.Resources>
|
|
|
+ <VisualBrush x:Key="WaterText" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Center" AlignmentY="Center">
|
|
|
+ <VisualBrush.Visual>
|
|
|
+ <TextBlock Text="please enter your name"/>
|
|
|
+ </VisualBrush.Visual>
|
|
|
+ </VisualBrush>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="CornerRadius" Value="8"/>
|
|
|
+ <Setter Property="BorderBrush" Value="#c1d0dc"/>
|
|
|
+ </Style>
|
|
|
|
|
|
- </TextBox.Resources>
|
|
|
- <TextBox.Style>
|
|
|
-
|
|
|
- <Style TargetType="TextBox">
|
|
|
- <Style.Triggers>
|
|
|
- <Trigger Property="Text" Value="{x:Null}">
|
|
|
- <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
- </Trigger>
|
|
|
- <Trigger Property="Text" Value="">
|
|
|
- <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
- </Trigger>
|
|
|
- </Style.Triggers>
|
|
|
- </Style>
|
|
|
- </TextBox.Style>
|
|
|
- </TextBox>
|
|
|
- <TextBlock Grid.Row="5" Text="Password" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
|
|
|
- <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" Foreground="Gray" KeyDown="PassWordTextBox_KeyDown">
|
|
|
- <customControls:CustomPasswordBox.Resources>
|
|
|
- <VisualBrush x:Key="WaterText" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Center" AlignmentY="Center">
|
|
|
- <VisualBrush.Visual>
|
|
|
- <TextBlock Text="please enter your password"/>
|
|
|
- </VisualBrush.Visual>
|
|
|
- </VisualBrush>
|
|
|
- <Style TargetType="{x:Type Border}">
|
|
|
- <Setter Property="CornerRadius" Value="8"/>
|
|
|
- <Setter Property="BorderBrush" Value="#c1d0dc"/>
|
|
|
- </Style>
|
|
|
- </customControls:CustomPasswordBox.Resources>
|
|
|
- <customControls:CustomPasswordBox.Style>
|
|
|
+ </TextBox.Resources>
|
|
|
+ <TextBox.Style>
|
|
|
|
|
|
- <Style TargetType="TextBox">
|
|
|
- <Style.Triggers>
|
|
|
- <Trigger Property="Text" Value="{x:Null}">
|
|
|
- <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
- </Trigger>
|
|
|
- <Trigger Property="Text" Value="">
|
|
|
- <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
- </Trigger>
|
|
|
- </Style.Triggers>
|
|
|
- </Style>
|
|
|
- </customControls:CustomPasswordBox.Style>
|
|
|
- </customControls:CustomPasswordBox>
|
|
|
- <TextBlock Grid.Row="7" Text="Role" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
|
|
|
- <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">
|
|
|
- <ComboBoxItem>Manager</ComboBoxItem>
|
|
|
- <ComboBoxItem>Engineer</ComboBoxItem>
|
|
|
- <ComboBoxItem>Technician</ComboBoxItem>
|
|
|
- <ComboBoxItem>Operator</ComboBoxItem>
|
|
|
- </customControls:CustomComBobox>
|
|
|
- <customControls:PathButton Grid.Row="9" Width="400" Height="40" Content="Login" Command="{Binding LoginCommand}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Login_Click" />
|
|
|
+ <Style TargetType="TextBox">
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="Text" Value="{x:Null}">
|
|
|
+ <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="Text" Value="">
|
|
|
+ <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </TextBox.Style>
|
|
|
+ </TextBox>
|
|
|
+ <TextBlock Grid.Row="5" Text="Password" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
|
|
|
+ <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" Foreground="Gray" KeyDown="PassWordTextBox_KeyDown">
|
|
|
+ <customControls:CustomPasswordBox.Resources>
|
|
|
+ <VisualBrush x:Key="WaterText" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Center" AlignmentY="Center">
|
|
|
+ <VisualBrush.Visual>
|
|
|
+ <TextBlock Text="please enter your password"/>
|
|
|
+ </VisualBrush.Visual>
|
|
|
+ </VisualBrush>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="CornerRadius" Value="8"/>
|
|
|
+ <Setter Property="BorderBrush" Value="#c1d0dc"/>
|
|
|
+ </Style>
|
|
|
+ </customControls:CustomPasswordBox.Resources>
|
|
|
+ <customControls:CustomPasswordBox.Style>
|
|
|
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
+ <Style TargetType="TextBox">
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="Text" Value="{x:Null}">
|
|
|
+ <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="Text" Value="">
|
|
|
+ <Setter Property="Background" Value="{StaticResource WaterText}"/>
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </customControls:CustomPasswordBox.Style>
|
|
|
+ </customControls:CustomPasswordBox>
|
|
|
+ <TextBlock Grid.Row="7" Text="Role" FontSize="16" FontFamily="D-DIN" Foreground="#666666"/>
|
|
|
+ <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">
|
|
|
+ <ComboBoxItem>Manager</ComboBoxItem>
|
|
|
+ <ComboBoxItem>Engineer</ComboBoxItem>
|
|
|
+ <ComboBoxItem>Technician</ComboBoxItem>
|
|
|
+ <ComboBoxItem>Operator</ComboBoxItem>
|
|
|
+ </customControls:CustomComBobox>
|
|
|
+ <customControls:PathButton Grid.Row="9" Width="400" Height="40" x:Name="logButton" Command="{Binding LoginCommand}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Login_Click" />
|
|
|
|
|
|
- <userControl:PathButton Width="15" Height="15" Cursor="Hand"
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <userControl:PathButton Width="15" Height="15" Cursor="Hand"
|
|
|
PathData="{StaticResource Icon_Close}"
|
|
|
Margin="1880 -1000 0 0"
|
|
|
- DefaultFillBrush="White"
|
|
|
+ DefaultFillBrush="DimGray"
|
|
|
MouseOverBrush="Yellow"
|
|
|
IsPressedBrush="Blue" Click="Close_Click"/>
|
|
|
- </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Viewbox>
|
|
|
</Window>
|