34 lines
1.5 KiB
XML
34 lines
1.5 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="clr-namespace:LehrerApp.Desktop.ViewModels.Students"
|
|
x:Class="LehrerApp.Desktop.Views.Students.SelectContactDialog"
|
|
x:DataType="vm:SelectContactDialogViewModel"
|
|
Title="Kontakt wählen" Width="380" Height="440"
|
|
CanResize="False" WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="Auto,*,Auto,Auto" Margin="24">
|
|
|
|
<TextBlock Grid.Row="0" Text="Kontakt für Anrede und Anschrift" Classes="dialogtitle" Margin="0,0,0,12"/>
|
|
|
|
<ListBox Grid.Row="1" ItemsSource="{Binding Contacts}" SelectedItem="{Binding SelectedContact}"
|
|
BorderThickness="1">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate x:DataType="vm:LetterContactChoice">
|
|
<TextBlock Text="{Binding Display}" Padding="4,2"/>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<Border Grid.Row="2" BorderBrush="{DynamicResource AppCardBorderBrush}" BorderThickness="1" CornerRadius="6"
|
|
Padding="10" Margin="0,12,0,0" IsVisible="{Binding HasAddressPreview}">
|
|
<TextBlock Text="{Binding AddressPreview}" TextWrapping="Wrap" FontSize="12"/>
|
|
</Border>
|
|
|
|
<Grid Grid.Row="3" ColumnDefinitions="*,10,*" Margin="0,16,0,0">
|
|
<Button Grid.Column="0" Content="Abbrechen" HorizontalAlignment="Stretch" Click="OnCancel"/>
|
|
<Button Grid.Column="2" Content="Übernehmen" HorizontalAlignment="Stretch" Click="OnApply"/>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</Window>
|