Files
LehrerApp/LehrerApp.Desktop/Views/DbPasswordPromptWindow.axaml
T
adminandClaude Sonnet 5 48d07a2b99 Datensicherheit: Backup, Verschlüsselung, App-Sperre (Kapitel 13.3)
Automatisches rollierendes Backup der Datenbank beim Start mit
Wiederherstellung über die Einstellungen, versionierte Schema-Migration,
optionale Passwort-Verschlüsselung der LiteDB-Datei und eine App-Sperre
nach Inaktivität mit eigenem Passwort.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 13:07:36 +02:00

21 lines
1.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:LehrerApp.Desktop.ViewModels"
x:Class="LehrerApp.Desktop.Views.DbPasswordPromptWindow"
x:DataType="vm:DbPasswordPromptViewModel"
Title="LehrerApp Datenbank entsperren"
Width="360" SizeToContent="Height"
CanResize="False" WindowStartupLocation="CenterScreen">
<StackPanel Margin="24" Spacing="12">
<TextBlock Text="🔒" FontSize="28" HorizontalAlignment="Center"/>
<TextBlock Text="Datenbank ist passwortgeschützt" FontSize="15" FontWeight="SemiBold"
HorizontalAlignment="Center" TextWrapping="Wrap"/>
<TextBox PlaceholderText="Passwort" PasswordChar="●"
Text="{Binding Password}" KeyDown="OnKeyDown" x:Name="PasswordBox"/>
<TextBlock Text="{Binding Error}" Foreground="Red" FontSize="12" HorizontalAlignment="Center"
IsVisible="{Binding Error, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
<Button Content="Entsperren" Command="{Binding UnlockCommand}"
HorizontalAlignment="Stretch" HorizontalContentAlignment="Center"/>
</StackPanel>
</Window>