MedicineInfo.xaml 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <Page x:Class="Prakticheskaya5_Venediktov.MedicineInfo"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Prakticheskaya5_Venediktov"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="MedicineInfo">
  10. <Page.Resources>
  11. <DataTemplate x:Key="MedicineInfo">
  12. <StackPanel Background="{Binding BGColor}">
  13. <TextBlock Text="{Binding ID_Medicine}"/>
  14. <TextBlock Text="{Binding Name_Medicine}"/>
  15. <TextBlock Text="{Binding Vid}"/>
  16. <TextBlock Text="{Binding Price}"/>
  17. </StackPanel>
  18. </DataTemplate>
  19. </Page.Resources>
  20. <Grid Background="LightBlue">
  21. <ScrollViewer>
  22. <Border Margin="15" Background="White" VerticalAlignment="Center" Padding="30" CornerRadius="50" Width="700">
  23. <StackPanel>
  24. <TextBlock Text="Медикаменты, которые есть в наличии" FontSize="30" FontWeight="Bold" Margin="0 0 0 10" HorizontalAlignment="Center"></TextBlock>
  25. <Button x:Name="back" Click="back_Click" HorizontalAlignment="Center" Margin="10, 20" FontSize="20" Content="Выйти"></Button>
  26. <ListView x:Name="Medicined" ItemTemplate="{StaticResource Medicined}"></ListView>
  27. </StackPanel>
  28. </Border>
  29. </ScrollViewer>
  30. </Grid>
  31. </Page>