-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vhod.xaml
60 lines (57 loc) · 2.93 KB
/
Vhod.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Window x:Class="WpfApp6.Vhod"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp6"
mc:Ignorable="d"
Title="Vhod" Height="250" Width="500" MinHeight="250" MinWidth="500" MaxHeight="250" MaxWidth="500"
Icon="Vhod.Ico">
<Window.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Color="white" Offset="0.2"/>
<GradientStop Color="Gray" Offset="0.5"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Window.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label FontSize="24" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontFamily="Times New Roman" FontWeight="Black">Введите пароль:</Label>
<PasswordBox Grid.Row="1" x:Name="passwordBox" Width="300" Height="30">
</PasswordBox>
<Button Grid.Row="2" Width="200" Height="40" Content="Войти" Click="Button_Click" FontFamily="Times New Roman" FontWeight="Black" FontSize="15" BorderBrush="Black" BorderThickness="1.5" Cursor="Hand" >
<Button.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Color="Gray" Offset="0.23"/>
<GradientStop Color="White" Offset="0.65"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Button.Background>
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" BorderBrush="Black" BorderThickness="0">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Transparent"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</Grid>
</Window>