mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2025-12-14 06:41:41 +01:00
Habe nun das Fenster "Kürzel" sowie Code Behind fertig und das "PinPanel", ebenfalls mit Code Behind angefertig.
Bitte Kommentare lesen wenn was geändert werden soll oder mich Ansprechen, danke :)
This commit is contained in:
48
StempelClient/PinPanel.xaml
Normal file
48
StempelClient/PinPanel.xaml
Normal file
@@ -0,0 +1,48 @@
|
||||
<Page x:Class="StempelClient.PinPanel"
|
||||
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:StempelClient"
|
||||
mc:Ignorable="d"
|
||||
Title="PinPanel" Height = "450" Width = "800"
|
||||
KeyDown="Page_KeyDown"
|
||||
Loaded="Page_Loaded"
|
||||
Focusable="True">
|
||||
<Grid Margin="10" Background="LightGray">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Zeile 0: Label und TextBox für die PIN -->
|
||||
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10,0,20">
|
||||
<Label FontWeight="Bold" FontSize="14" Content="PIN" VerticalAlignment="Center" Margin="0,0,10,0" Width="50" Height="30"/>
|
||||
<TextBox x:Name="PinTextBox" Width="200" Height="30" TextChanged="PinTextBox_TextChanged" BorderThickness="2" Background="White"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Zeile 1: Nummern-Buttons in einem UniformGrid -->
|
||||
<UniformGrid Grid.Row="1" Columns="3" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20">
|
||||
<!-- Erste Zeile -->
|
||||
<Button Content="1" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<Button Content="2" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<Button Content="3" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
|
||||
<!-- Zweite Zeile -->
|
||||
<Button Content="4" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<Button Content="5" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<Button Content="6" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
|
||||
<!-- Dritte Zeile -->
|
||||
<Button Content="7" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<Button Content="8" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<Button Content="9" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
|
||||
<!-- Vierte Zeile -->
|
||||
<Button x:Name="PinEnterButton" Content="↵" Width="50" Height="50" Margin="5" Background="LightGreen" Click="PinEnterButton_Click"/>
|
||||
<Button Content="0" Width="50" Height="50" Margin="5" Background="White" Click="PinButton_Click"/>
|
||||
<!-- Leerer Platzhalter -->
|
||||
<Button Content="" Width="50" Height="50" Margin="5" Visibility="Hidden" IsEnabled="False"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user