Files

33 lines
1.3 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.AddressViewerWindow"
x:DataType="vm:ContactItem"
Title="Adresse"
Width="340" Height="230"
MinWidth="280" MinHeight="180"
CanResize="True"
ShowInTaskbar="False"
WindowStartupLocation="Manual">
<Grid RowDefinitions="Auto,*,Auto" Margin="18">
<StackPanel Grid.Row="0" Spacing="3">
<TextBlock Text="{Binding Name}" FontSize="16" FontWeight="SemiBold"/>
<TextBlock Text="{Binding Relation}" FontSize="12" Opacity="0.55"/>
</StackPanel>
<Border Grid.Row="1" Margin="0,14" Padding="12"
Background="{DynamicResource SystemControlBackgroundAltHighBrush}"
CornerRadius="7">
<TextBox Text="{Binding Address}" IsReadOnly="True"
AcceptsReturn="True" TextWrapping="Wrap"
BorderThickness="0" Background="Transparent"
VerticalContentAlignment="Center"/>
</Border>
<TextBlock Grid.Row="2"
Text="Das Fenster kann verschoben und parallel weiter geöffnet bleiben."
FontSize="10" Opacity="0.45" TextWrapping="Wrap"/>
</Grid>
</Window>