DetailWindow.xaml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <Window x:Class="WpfApp2.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:WpfApp2.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 price}"/>
  19. <TextBlock Text="{Binding detail}"/>
  20. <TextBlock Text="{Binding type}"/>
  21. <TextBlock Text="{Binding date, StringFormat='dd.MM.yyyy'}"/>
  22. <TextBlock Text="{Binding available}"/>
  23. </StackPanel>
  24. <TextBlock Grid.Column="2" Text="{Binding type}" Margin="0,2,10,0"/>
  25. <Button IsCancel="True" Click="ExitButton_Click" Margin="20,273,46,26" Grid.Column="1" Background="DarkRed">OK</Button>
  26. </Grid>
  27. </Window>