|
@@ -5,7 +5,7 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:local="clr-namespace:InteractiveKiosk"
|
|
|
mc:Ignorable="d"
|
|
|
- Title="Окно авторизации" Height="300" Width="400" AllowsTransparency="True" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Icon="Logo.png" WindowStyle="None" Background="Transparent">
|
|
|
+ Height="300" Width="400" AllowsTransparency="True" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Icon="Logo.png" WindowStyle="None" Background="Transparent">
|
|
|
<Window.Resources>
|
|
|
<Style x:Key="TextBox" TargetType="TextBox">
|
|
|
<Setter Property="Background" Value="White"/>
|
|
@@ -19,7 +19,7 @@
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="TextBox">
|
|
|
<Grid x:Name="root" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" SnapsToDevicePixels="True">
|
|
|
- <Border x:Name="Background" BorderThickness="1" CornerRadius="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"/>
|
|
|
+ <Border x:Name="Background" BorderThickness="1" CornerRadius="15" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"/>
|
|
|
<ScrollViewer x:Name="PART_ContentHost" BorderThickness="0" Padding="{TemplateBinding Padding}" IsTabStop="False" Background="{x:Null}" TextElement.Foreground="{TemplateBinding Foreground}"/>
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
@@ -32,7 +32,6 @@
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
-
|
|
|
<Style x:Key="Password" TargetType="PasswordBox">
|
|
|
<Setter Property="Background" Value="White"/>
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
@@ -46,7 +45,7 @@
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="PasswordBox">
|
|
|
<Grid x:Name="root" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" SnapsToDevicePixels="True">
|
|
|
- <Border x:Name="Background" BorderThickness="1" CornerRadius="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"/>
|
|
|
+ <Border x:Name="Background" BorderThickness="1" CornerRadius="15" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"/>
|
|
|
<ScrollViewer x:Name="PART_ContentHost" BorderThickness="0" Padding="{TemplateBinding Padding}" IsTabStop="False" Background="{x:Null}" TextElement.Foreground="{TemplateBinding Foreground}"/>
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
@@ -59,17 +58,16 @@
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
-
|
|
|
</Window.Resources>
|
|
|
<Grid Name="Authorization" Background="Transparent" MouseDown="Authorization_MouseDown">
|
|
|
- <Polygon Fill="White" Opacity="0.3" Points="107,0,115,7,249,7,257,0" Margin="0,0,98,0" HorizontalAlignment="Right" Width="392"></Polygon>
|
|
|
<Border CornerRadius="20" BorderBrush="Black" BorderThickness="0">
|
|
|
<Border.Background>
|
|
|
<ImageBrush ImageSource="file.jpg"/>
|
|
|
</Border.Background>
|
|
|
+ <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="АВТОРИЗАЦИЯ" VerticalAlignment="Top" Height="29" Width="150" Margin="130,28,0,0" FontSize="20" FontFamily="Segoe UI Semilight"/>
|
|
|
</Border>
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Width="69">
|
|
|
- <Image Name="MinButton" Height="23" Width="20" Margin="10,-255,-13,0" MouseDown="MinButton_MouseDown">
|
|
|
+ <Image Name="MinButton" Height="23" Width="20" Margin="5,-255,-13,0" MouseDown="MinButton_MouseDown">
|
|
|
<Image.Style>
|
|
|
<Style TargetType="{x:Type Image}">
|
|
|
<Setter Property="Source" Value="Resources/min(inactive).png"/>
|
|
@@ -96,8 +94,7 @@
|
|
|
</Image.Style>
|
|
|
</Image>
|
|
|
</StackPanel>
|
|
|
-
|
|
|
- <Border Name="LogButton" Height="23" Width="106" BorderThickness="1" Background="Black" Margin="250,201,44,76">
|
|
|
+ <Border Name="LogButton" Width="106" BorderThickness="1" Background="Black" CornerRadius="15" Margin="250,201,44,66">
|
|
|
<Border.Style>
|
|
|
<Style TargetType="{x:Type Border}">
|
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
@@ -120,8 +117,7 @@
|
|
|
</Style.Triggers>
|
|
|
</Style>
|
|
|
</Border.Style>
|
|
|
-
|
|
|
- <Button Content="Войти" FontSize="15" Foreground="Black" >
|
|
|
+ <Button Content="Войти" FontSize="14" Foreground="Black" FontFamily="Segoe UI Semilight">
|
|
|
<Button.Style>
|
|
|
<Style TargetType="Button">
|
|
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
@@ -129,7 +125,7 @@
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
- <Border Name="Border" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}">
|
|
|
+ <Border Name="Border" BorderThickness="0" BorderBrush="Black" CornerRadius="15" Background="{TemplateBinding Background}">
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
</Border>
|
|
|
<ControlTemplate.Triggers>
|
|
@@ -160,8 +156,8 @@
|
|
|
</Button.Style>
|
|
|
</Button>
|
|
|
</Border>
|
|
|
- <TextBox x:Name="Login" Style="{StaticResource TextBox}" Margin="173,98,44,179"/>
|
|
|
- <TextBlock IsHitTestVisible="False" FontSize="14" Text="Логин" VerticalAlignment="Top" Foreground="Gray" Margin="183,100,56,0">
|
|
|
+ <TextBox x:Name="Login" Style="{StaticResource TextBox}" Margin="173,98,23,169" Height="Auto"/>
|
|
|
+ <TextBlock IsHitTestVisible="False" FontSize="14" Text="Логин" VerticalAlignment="Top" Foreground="Gray" Margin="186,105,35,0" FontFamily="Segoe UI Semilight">
|
|
|
<TextBlock.Style>
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
@@ -173,16 +169,16 @@
|
|
|
</Style>
|
|
|
</TextBlock.Style>
|
|
|
</TextBlock>
|
|
|
- <PasswordBox x:Name="Password" Style="{StaticResource Password}" Margin="173,136,44,141"/>
|
|
|
- <TextBlock Name="Watermark" IsHitTestVisible="False" FontSize="14" Text="Пароль" VerticalAlignment="Top" Foreground="Gray" Margin="183,138,56,0">
|
|
|
+ <PasswordBox x:Name="Password" Style="{StaticResource Password}" Margin="173,136,23,131" Height="Auto"/>
|
|
|
+ <TextBlock Name="Watermark" IsHitTestVisible="False" FontSize="14" Text="Пароль" VerticalAlignment="Top" Foreground="Gray" Margin="186,144,35,0" FontFamily="Segoe UI Semilight">
|
|
|
</TextBlock>
|
|
|
- <TextBlock HorizontalAlignment="Left" Margin="44,97,0,0" TextWrapping="Wrap" Text="Имя пользователя:" VerticalAlignment="Top" Height="23" Width="106"/>
|
|
|
- <TextBlock HorizontalAlignment="Left" Margin="44,135,0,0" TextWrapping="Wrap" Text="Пароль:" VerticalAlignment="Top" Height="23" Width="106"/>
|
|
|
- <ToggleButton Name="Check" Content="Показать пароль" Height="23" Width="140" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="44,201,0,0" Foreground="Black" Checked="PasswordChecked">
|
|
|
+ <TextBlock HorizontalAlignment="Left" Margin="23,105,0,0" TextWrapping="Wrap" Text="Имя пользователя:" VerticalAlignment="Top" Height="23" Width="145" FontSize="14" FontFamily="Segoe UI Semilight"/>
|
|
|
+ <TextBlock HorizontalAlignment="Left" Margin="23,144,0,0" TextWrapping="Wrap" Text="Пароль:" VerticalAlignment="Top" Height="23" Width="127" FontSize="14" FontFamily="Segoe UI Semilight"/>
|
|
|
+ <ToggleButton Name="Check" Content="Показать пароль" Height="33" Width="164" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="44,203,0,0" Foreground="Black" Checked="PasswordChecked" FontSize="14" FontFamily="Segoe UI Semilight">
|
|
|
<ToggleButton.Template>
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
- <Border Height="23" Width="25" CornerRadius="2" HorizontalAlignment="Left" BorderThickness="1" Background="Transparent">
|
|
|
+ <Border Height="28" Width="30" CornerRadius="15" HorizontalAlignment="Left" BorderThickness="1" Background="Transparent">
|
|
|
<Border.Style>
|
|
|
<Style TargetType="{x:Type Border}">
|
|
|
<Setter Property="BorderBrush" Value="Black"/>
|
|
@@ -207,7 +203,7 @@
|
|
|
</Style.Triggers>
|
|
|
</Style>
|
|
|
</Border.Style>
|
|
|
- <Image Margin="4">
|
|
|
+ <Image Margin="2">
|
|
|
<Image.Style>
|
|
|
<Style>
|
|
|
<Style.Triggers>
|
|
@@ -224,6 +220,10 @@
|
|
|
</ControlTemplate>
|
|
|
</ToggleButton.Template>
|
|
|
</ToggleButton>
|
|
|
-
|
|
|
+ <Image x:Name="man" Margin="60,24,300,236">
|
|
|
+ <Image.Source>
|
|
|
+ <FormatConvertedBitmap Source="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\people.png"/>
|
|
|
+ </Image.Source>
|
|
|
+ </Image>
|
|
|
</Grid>
|
|
|
</Window>
|