<Window xmlns="https://github.com/avaloniaui"
        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"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        x:Class="demo0411.History"
		x:CompileBindings="False"
        Title="History"
		Icon="/Assets/Мастер пол.ico">
	<StackPanel>
		<TextBlock Text="История реализации продукции" FontFamily="Segoe UI" HorizontalAlignment="Center"/>
		<DockPanel>
			<TextBlock FontFamily="Segoe UI" Text="Выберите партнера, чтобы увидеть историю реализации продукции: "/>
			<ComboBox FontFamily="Segoe UI" SelectionChanged="ComboBox_SelectionChanged" Name="PartName"/>
		</DockPanel>
		<ListBox FontFamily="Segoe UI" Name="ListProducts" DockPanel.Dock="Bottom" Background="#F4E8D3" Height="400">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Border BorderBrush="Black" BorderThickness="2">
						<StackPanel>
							<TextBlock FontFamily="Segoe UI" Text="Наименование товара"/>
							<TextBlock FontFamily="Segoe UI" Text="{Binding Product.Name}"/>
							<TextBlock FontFamily="Segoe UI" Text="Количество"/>
							<TextBlock FontFamily="Segoe UI" Text="{Binding Amount}"/>
							<TextBlock FontFamily="Segoe UI" Text="Дата продажи"/>
							<TextBlock FontFamily="Segoe UI" Text="{Binding SaleDate}"/>
						</StackPanel>
					</Border>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<Button Click="Button_Click" Content="Назад"  Background="#67BA80" FontFamily="Segoe UI"/>
	</StackPanel>

</Window>
