FahrzeugVerwaltung/FahrzeugProjekt/FahrzeugEintragenWindow.xaml
2025-09-05 16:24:44 +02:00

68 lines
3.4 KiB
XML

<Window x:Class="FahrzeugProjekt.FahrzeugEintragenWindow"
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:FahrzeugProjekt"
mc:Ignorable="d"
Title="Neues Fahrzeug Eintragen" Height="600" Width="500"
WindowStartupLocation="CenterScreen">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Titel -->
<TextBlock Grid.Row="0" Text="Neues Fahrzeug Hinzufügen"
FontSize="20" FontWeight="Bold"
HorizontalAlignment="Center" Margin="0,0,0,20"/>
<!-- Eingabeformular -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<StackPanel>
<!-- Modell auswählen -->
<Label Content="Modell:" FontWeight="Bold"/>
<ComboBox Name="cmbModell" Margin="0,0,0,10" Height="25"/>
<!-- Getriebe -->
<Label Content="Getriebe:" FontWeight="Bold"/>
<ComboBox Name="cmbGetriebe" Margin="0,0,0,10" Height="25">
<ComboBoxItem Content="Manuell"/>
<ComboBoxItem Content="Automatik"/>
<ComboBoxItem Content="Halbautomatik"/>
</ComboBox>
<!-- Kraftstoff -->
<Label Content="Kraftstoff:" FontWeight="Bold"/>
<ComboBox Name="cmbKraftstoff" Margin="0,0,0,10" Height="25">
<ComboBoxItem Content="Benzin"/>
<ComboBoxItem Content="Diesel"/>
<ComboBoxItem Content="Elektro"/>
<ComboBoxItem Content="Hybrid"/>
</ComboBox>
<!-- Baujahr -->
<Label Content="Baujahr:" FontWeight="Bold"/>
<TextBox Name="txtBaujahr" Margin="0,0,0,10" Height="25"/>
<!-- Farbe -->
<Label Content="Farbe:" FontWeight="Bold"/>
<TextBox Name="txtFarbe" Margin="0,0,0,10" Height="25"/>
<!-- Kilometerstand -->
<Label Content="Kilometerstand:" FontWeight="Bold"/>
<TextBox Name="txtKilometer" Margin="0,0,0,10" Height="25"/>
<!-- Beschreibung -->
<Label Content="Beschreibung:" FontWeight="Bold"/>
<TextBox Name="txtBeschreibung" Margin="0,0,0,20" Height="80"
TextWrapping="Wrap" AcceptsReturn="True"
VerticalScrollBarVisibility="Auto"/>
</StackPanel>
</ScrollViewer>
<!-- Buttons -->
<StackPanel Grid.Row="2" Orientation="Horizontal"
HorizontalAlignment="Center" Margin="0,20,0,0">
<Button Name="kpfSpeichern" Content="Speichern"
Width="100" Height="35" Margin="10,0"
Click="Speichern"/>
<Button Name="KpfAbbrechen" Content="Abbrechen"
Width="100" Height="35" Margin="10,0"
Click="Abbrechen"/>
</StackPanel>
</Grid>
</Window>