Files
Kansan/KanSan/UI/Kunde/UCKundeList.xaml
HuskyTeufel c66751ddc5 Kundenedit hinzugefügt
Neue Kunden werden gleich zur Editseite weitergeleitet

Kunden können gelöscht werden
2021-08-31 12:25:27 +02:00

33 lines
1.7 KiB
XML

<UserControl x:Class="KanSan.UI.UCKundeList"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:sd ="clr-namespace:KanSan.SampleData"
xmlns:local="clr-namespace:KanSan.UI"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<d:UserControl.DataContext>
<sd:KundeListViewModelSampleData />
</d:UserControl.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="50" />
<RowDefinition Height="50"/>
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<DataGrid IsReadOnly="True" AutoGenerateColumns="False" SelectionMode="Single" SelectedItem="{Binding SelectedKunde, Mode=TwoWay}" ItemsSource="{Binding Kunden}" Name="dgKundenList">
<DataGrid.Columns>
<DataGridTextColumn Header="Vorname" Binding="{Binding Vorname}" />
<DataGridTextColumn Header="Nachname" Binding="{Binding Nachname}" />
<DataGridTextColumn Header="Ort" Binding="{Binding Ort}" />
</DataGrid.Columns>
</DataGrid>
<Button Grid.Row="1" Name="SelectKunde" Content="Kunde Auswählen" />
<Button Grid.Row="2" Name="EditKunde" Content="Kunde Editieren" Command="{Binding EditClientCommand}" />
<Button Grid.Row="3" Name="NeueKunde" Content="Neue Kunde anlegen" Command="{Binding AddNewClientCommand}" />
</Grid>
</UserControl>