-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
106 lines (100 loc) · 5.5 KB
/
MainWindow.xaml
File metadata and controls
106 lines (100 loc) · 5.5 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<Window x:Class="SecurePassWPF.MainWindow"
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:SecurePassWPF"
mc:Ignorable="d"
Title="SecurePass" Height="500" Width="800"
WindowStartupLocation="CenterScreen"
Background="#FF2D2D30">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Background" Value="#FF3F3F46"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="#FF555555"/>
<Setter Property="Padding" Value="10,5"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF555555"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="ListBox">
<Setter Property="Background" Value="#FF252526"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="#FF3F3F46"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="#FF555555"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="5"/>
</Style>
<Style TargetType="Label">
<Setter Property="Foreground" Value="#FFAAAAAA"/>
</Style>
<Style TargetType="PasswordBox">
<Setter Property="Background" Value="#FF3F3F46"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="#FF555555"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="5"/>
</Style>
</Window.Resources>
<DockPanel>
<StatusBar DockPanel.Dock="Bottom" Background="#FF333337" Height="24">
<StatusBarItem>
<TextBlock x:Name="StatusTextBlock" Text="Готово" Foreground="White" Margin="5,0"/>
</StatusBarItem>
<StatusBarItem HorizontalAlignment="Right">
<TextBlock Text="made by fleim" Foreground="#FFAAAAAA" Margin="0,0,10,0"/>
</StatusBarItem>
</StatusBar>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<DockPanel Grid.Column="0" Background="#FF252526">
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
<Button x:Name="AddButton" Content="✚ Добавить" Width="100" Click="AddButton_Click"/>
<Button x:Name="RemoveButton" Content="✖ Удалить" Width="100" Click="RemoveButton_Click"/>
</StackPanel>
<ListBox x:Name="ServiceListBox" Margin="5" SelectionChanged="ServiceListBox_SelectionChanged"/>
</DockPanel>
<Grid Grid.Column="1" Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Content="Сервис" FontSize="16" FontWeight="Bold" Foreground="White"/>
<TextBox x:Name="ServiceTextBox" Grid.Row="1" Margin="0,0,0,15" IsReadOnly="True" FontSize="14"/>
<Label Grid.Row="2" Content="Логин" FontSize="16" FontWeight="Bold" Foreground="White"/>
<TextBox x:Name="UsernameTextBox" Grid.Row="3" Margin="0,0,0,15" IsReadOnly="True" FontSize="14"/>
<Label Grid.Row="4" Content="Пароль" FontSize="16" FontWeight="Bold" Foreground="White"/>
<DockPanel Grid.Row="4" Margin="0,35,0,0">
<StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Right" Margin="0,10,0,0">
<Button x:Name="CopyButton" Content="❐ Копировать" Width="120" Click="CopyButton_Click"/>
</StackPanel>
<PasswordBox x:Name="PasswordBox" IsEnabled="False" VerticalContentAlignment="Center" FontSize="14"/>
</DockPanel>
</Grid>
</Grid>
</DockPanel>
</Window>