DetailWindow.xaml 1.4 KB

12345678910111213141516171819202122232425262728
  1. <Window x:Class="WpfApp1.Windows.DetailWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp1.Windows"
  7. mc:Ignorable="d"
  8. Title="DetailWindow" Height="450" Width="800">
  9. <Grid RenderTransformOrigin="0.498,0.573">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="64"/>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="auto"/>
  14. </Grid.ColumnDefinitions>
  15. <Image Source="{Binding ImageBitmap}" Grid.ColumnSpan="1" Margin="2,83,2,183"/>
  16. <StackPanel Orientation="Vertical" Margin="0,0,27,190" Grid.Column="1">
  17. <TextBlock Text="{Binding name}"/>
  18. <TextBlock Text="{Binding Pos}"/>
  19. <TextBlock Text="{Binding Sex}"/>
  20. <TextBlock Text="{Binding date, StringFormat='dd.MM.yyyy'}"/>
  21. <TextBlock Text="{Binding available}"/>
  22. </StackPanel>
  23. <TextBlock Grid.Column="2" Text="{Binding Age}" Margin="0,2,10,0"/>
  24. <Button IsCancel="True" Click="ExitButton_Click" Margin="20,273,46,26" Grid.Column="1" Background="Pink">OK</Button>
  25. </Grid>
  26. </Window>