Aufgabe WPF

This commit is contained in:
2025-06-02 15:30:25 +02:00
parent 86006adb9c
commit 80d64c9574
13 changed files with 257 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
<Window x:Class="FahzeugWPF.MainWindow"
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:FahzeugWPF"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=local:MainWindowViewModel, IsDesignTimeCreatable=False}"
Title="Fahrzeuge" Height="450" Width="800">
<StackPanel>
<DataGrid Name="dgTest"
CanUserAddRows="False"
CanUserDeleteRows="False"
CanUserSortColumns="True"
IsReadOnly="True"
AutoGenerateColumns="False"
ItemsSource="{Binding Path=Fahrzeuge}">
<DataGrid.Columns>
<DataGridTextColumn Header="ID" Binding="{Binding Path=Id}"/>
<DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"/>
</DataGrid.Columns>
</DataGrid>
</StackPanel>
</Window>