44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="ChronoFlow.View.Security.PasswortAendernDialog"
|
|
Width="400" Height="250"
|
|
Title="Passwort ändern">
|
|
|
|
<!-- Haupt-Layout: vertikaler StackPanel für die Anordnung aller Elemente -->
|
|
<StackPanel Margin="20" Spacing="10">
|
|
|
|
<!-- Überschrift: Benutzername (wird zur Laufzeit ergänzt) -->
|
|
<TextBlock x:Name="UsernameTextBlock"
|
|
Text="Benutzer: "
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
|
|
<!-- Eingabe neues Passwort -->
|
|
<TextBlock Text="Neues Passwort:" />
|
|
<TextBox x:Name="NeuesPasswortBox"
|
|
PasswordChar="●" /> <!-- Passwort wird maskiert -->
|
|
|
|
<!-- Eingabe Bestätigung des Passworts -->
|
|
<TextBlock Text="Passwort bestätigen:" />
|
|
<TextBox x:Name="BestaetigenBox"
|
|
PasswordChar="●" /> <!-- Wiederholung zur Sicherheit -->
|
|
|
|
<!-- Fehlermeldung (standardmäßig ausgeblendet) -->
|
|
<TextBlock x:Name="FehlerText"
|
|
Foreground="Red"
|
|
IsVisible="False" />
|
|
|
|
<!-- Aktionsbuttons (zentriert nebeneinander) -->
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
Spacing="10"
|
|
Margin="0,10,0,0">
|
|
<Button Content="💾 Speichern"
|
|
Click="SpeichernButton_Click"
|
|
Width="100" />
|
|
<Button Content="❌ Abbrechen"
|
|
Click="AbbrechenButton_Click"
|
|
Width="100" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Window> |