<Window x:Class="WpfAppA.Windows.DetailWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfAppA.Windows"
        mc:Ignorable="d"
        Title="DetailWindow" Height="450" Width="800">
    <Window.Resources>
        <BitmapImage 
     x:Key='defaultImage' 
     UriSource='./img/2.jpg' />
    </Window.Resources>
    <Grid RenderTransformOrigin="0.498,0.573">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        

        <Image Source="{Binding ImageBitmap}" Grid.ColumnSpan="1" Margin="2,83,2,183"/>
        <StackPanel
            Grid.Column="1">
            <TextBlock Text="Имя:">
            <TextBlock Text="{Binding name}"/>
            </TextBlock>
            <TextBlock Text="Возраст:">
            <TextBlock Text="{Binding Age}"/>
            </TextBlock>
            <TextBlock Text="Мощь:">
            <TextBlock Text="{Binding power}"/>
            </TextBlock>
            <TextBlock Text="Раса:">
            <TextBlock Text="{Binding race}"/>
            </TextBlock>
            <TextBlock Text="Дата выхода:">
            <TextBlock Text="{Binding dateOfLastVaccination, StringFormat='dd.MM.yyyy'}"/>
            </TextBlock>
        </StackPanel>
        <TextBlock Grid.Column="2"  Text="{Binding Age}" Margin="0,2,10,0"/>
        <Button IsCancel="True" Click="ExitButton_Click" Margin="20,280,46,26" Grid.Column="1" Background="IndianRed">OK</Button>

    </Grid>
</Window>