Window1.xaml 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <Window x:Class="WpfApp1.Window1"
  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"
  7. mc:Ignorable="d"
  8. Title="InfoWindow" Height="300" Width="300">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="64"/>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="auto"/>
  14. </Grid.ColumnDefinitions>
  15. <Image Width="59" Height="64" Source="{Binding ImageBitmap}"/>
  16. <StackPanel Grid.Column="1" Orientation="Vertical" Margin="20,2,0,5">
  17. <TextBlock Text="{Binding name}"/>
  18. <TextBlock Text="{Binding year}"/>
  19. <TextBlock Text="{Binding price}"/>
  20. <TextBlock Text="{Binding color}"/>
  21. <TextBlock Text="{Binding defects}"/>
  22. <TextBlock Text="{Binding dateOfLastSTO}"/>
  23. </StackPanel>
  24. <TextBlock Grid.Column="2" Text="{Binding year}" Margin="0,2,10,0"/>
  25. <Button IsCancel="True" Click="ExitButton_Click" Margin="40,200,40,40" Grid.Column="1">OK</Button>
  26. </Grid>
  27. </Window>