| | 4 | 1 | | <UserControl xmlns="https://github.com/avaloniaui" |
| | | 2 | | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| | | 3 | | xmlns:vm="using:LOCKnet.App.ViewModels" |
| | | 4 | | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| | | 5 | | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| | | 6 | | mc:Ignorable="d" d:DesignWidth="900" d:DesignHeight="600" |
| | | 7 | | x:Class="LOCKnet.App.Views.LockScreenView" |
| | | 8 | | x:DataType="vm:LockScreenViewModel" |
| | 2 | 9 | | Background="{StaticResource BrushBg}"> |
| | | 10 | | |
| | | 11 | | <Design.DataContext> |
| | | 12 | | <vm:LockScreenViewModel/> |
| | | 13 | | </Design.DataContext> |
| | | 14 | | |
| | 4 | 15 | | <Grid RowDefinitions="*,Auto,*"> |
| | 8 | 16 | | <StackPanel Grid.Row="1" |
| | | 17 | | Width="380" |
| | 2 | 18 | | HorizontalAlignment="Center" |
| | | 19 | | Spacing="0"> |
| | | 20 | | |
| | | 21 | | <!-- Lock Icon --> |
| | 8 | 22 | | <Border Width="80" Height="80" |
| | 2 | 23 | | CornerRadius="40" |
| | 2 | 24 | | Background="{StaticResource BrushSurface}" |
| | | 25 | | HorizontalAlignment="Center" |
| | 2 | 26 | | Margin="0,0,0,12"> |
| | 8 | 27 | | <TextBlock Text="■" |
| | | 28 | | FontSize="28" |
| | 2 | 29 | | Foreground="{StaticResource BrushAccent}" |
| | | 30 | | HorizontalAlignment="Center" |
| | 2 | 31 | | VerticalAlignment="Center"/> |
| | | 32 | | </Border> |
| | | 33 | | |
| | | 34 | | <!-- Title --> |
| | 8 | 35 | | <TextBlock Text="Sitzung gesperrt" |
| | | 36 | | FontSize="26" |
| | 2 | 37 | | FontWeight="Bold" |
| | 2 | 38 | | Foreground="{StaticResource BrushTextPrimary}" |
| | | 39 | | HorizontalAlignment="Center" |
| | 2 | 40 | | Margin="0,0,0,6"/> |
| | | 41 | | |
| | | 42 | | <!-- Subtitle --> |
| | 10 | 43 | | <TextBlock Text="Gib dein Master-Passwort ein, um fortzufahren." |
| | | 44 | | FontSize="14" |
| | 2 | 45 | | Foreground="{StaticResource BrushTextSecondary}" |
| | | 46 | | HorizontalAlignment="Center" |
| | 2 | 47 | | TextAlignment="Center" |
| | | 48 | | Margin="0,0,0,40"/> |
| | | 49 | | |
| | | 50 | | <!-- Card --> |
| | 6 | 51 | | <Border Background="{StaticResource BrushSurface}" |
| | 2 | 52 | | CornerRadius="{StaticResource RadiusLg}" |
| | | 53 | | Padding="40,36"> |
| | 6 | 54 | | <StackPanel Spacing="20"> |
| | | 55 | | |
| | | 56 | | <!-- Password --> |
| | 6 | 57 | | <StackPanel Spacing="6"> |
| | 6 | 58 | | <TextBlock Text="Master-Passwort" |
| | | 59 | | FontSize="12" |
| | 2 | 60 | | Foreground="{StaticResource BrushTextSecondary}"/> |
| | 6 | 61 | | <TextBox x:Name="PasswordInput" |
| | | 62 | | PasswordChar="●" |
| | 2 | 63 | | Watermark="Passwort eingeben…"/> |
| | | 64 | | </StackPanel> |
| | | 65 | | |
| | | 66 | | <!-- Error --> |
| | 6 | 67 | | <TextBlock Text="{Binding ErrorMessage}" |
| | 2 | 68 | | Foreground="{StaticResource BrushError}" |
| | | 69 | | FontSize="12" |
| | 2 | 70 | | IsVisible="{Binding ErrorMessage, Converter={x:Static StringConverters.IsNotNullOrEmpty}} |
| | | 71 | | |
| | | 72 | | <!-- Unlock Button --> |
| | 8 | 73 | | <Button Content="Entsperren" |
| | | 74 | | Classes="primary" |
| | 2 | 75 | | Click="OnUnlockClick" |
| | | 76 | | HorizontalAlignment="Stretch" |
| | 2 | 77 | | HorizontalContentAlignment="Center"/> |
| | | 78 | | |
| | | 79 | | </StackPanel> |
| | | 80 | | </Border> |
| | | 81 | | |
| | | 82 | | </StackPanel> |
| | | 83 | | </Grid> |
| | | 84 | | |
| | | 85 | | </UserControl> |