DetailWindow.xaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Window x:Class="WpfAppA.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:WpfAppA.Windows"
  7. mc:Ignorable="d"
  8. Title="DetailWindow" Height="450" Width="800">
  9. <Window.Resources>
  10. <BitmapImage
  11. x:Key='defaultImage'
  12. UriSource='./img/2.jpg' />
  13. </Window.Resources>
  14. <Grid RenderTransformOrigin="0.498,0.573">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="auto"/>
  17. <ColumnDefinition Width="*"/>
  18. <ColumnDefinition Width="auto"/>
  19. </Grid.ColumnDefinitions>
  20. <Image Source="{Binding ImageBitmap}" Grid.ColumnSpan="1" Margin="2,83,2,183"/>
  21. <StackPanel
  22. Grid.Column="1">
  23. <TextBlock Text="Имя:">
  24. <TextBlock Text="{Binding name}"/>
  25. </TextBlock>
  26. <TextBlock Text="Возраст:">
  27. <TextBlock Text="{Binding Age}"/>
  28. </TextBlock>
  29. <TextBlock Text="Мощь:">
  30. <TextBlock Text="{Binding power}"/>
  31. </TextBlock>
  32. <TextBlock Text="Раса:">
  33. <TextBlock Text="{Binding race}"/>
  34. </TextBlock>
  35. <TextBlock Text="Дата выхода:">
  36. <TextBlock Text="{Binding dateOfLastVaccination, StringFormat='dd.MM.yyyy'}"/>
  37. </TextBlock>
  38. </StackPanel>
  39. <TextBlock Grid.Column="2" Text="{Binding Age}" Margin="0,2,10,0"/>
  40. <Button IsCancel="True" Click="ExitButton_Click" Margin="20,280,46,26" Grid.Column="1" Background="IndianRed">OK</Button>
  41. </Grid>
  42. </Window>