ResultPage.xaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <Page x:Class="HelpHelf.Pages.ResultPage"
  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:HelpHelf.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="ResultPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="60"/>
  13. <RowDefinition Height="80"/>
  14. <RowDefinition Height="1*"/>
  15. <RowDefinition Height="60"/>
  16. </Grid.RowDefinitions>
  17. <TextBlock VerticalAlignment="Center" FontFamily="Calibri"
  18. Foreground="#0B61A4" FontWeight="Bold"
  19. FontSize="26" HorizontalAlignment="Center"
  20. Text="Результат психологического тестирования"/>
  21. <StackPanel VerticalAlignment="Center" Margin="20,10,0,0"
  22. Grid.Row="1">
  23. <TextBlock FontFamily="Calibri" FontSize="20">
  24. <Run Text="Фамилия имя:" FontWeight="Bold"/>
  25. <Run Name="rName"/>
  26. </TextBlock>
  27. <TextBlock FontFamily="Calibri" FontSize="20">
  28. <Run Text="Дата:" FontWeight="Bold"/>
  29. <Run Name="rDate"/>
  30. </TextBlock>
  31. </StackPanel>
  32. <ListView ScrollViewer.CanContentScroll="False"
  33. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  34. Grid.Row="2" Name="listDisease"
  35. HorizontalContentAlignment="Stretch">
  36. <ListView.ItemTemplate>
  37. <DataTemplate>
  38. <Grid>
  39. <StackPanel>
  40. <TextBlock TextWrapping="WrapWithOverflow"
  41. FontFamily="Calibri" FontSize="20">
  42. <Run Text="Наименование заболевания:"
  43. FontWeight="Bold"/>
  44. <Run Text="{Binding DiseaseTable.Name}"/>
  45. </TextBlock>
  46. <TextBlock TextWrapping="WrapWithOverflow"
  47. FontFamily="Calibri" FontSize="20">
  48. <Run Text="Описание:"
  49. FontWeight="Bold"/>
  50. <Run Text="{Binding DiseaseTable.Description}"/>
  51. </TextBlock>
  52. <TextBlock TextWrapping="WrapWithOverflow"
  53. FontFamily="Calibri" FontSize="20">
  54. <Run Text="Лечение:"
  55. FontWeight="Bold"/>
  56. <Run Text="{Binding DiseaseTable.Medication}"/>
  57. </TextBlock>
  58. </StackPanel>
  59. </Grid>
  60. </DataTemplate>
  61. </ListView.ItemTemplate>
  62. </ListView>
  63. <Button Click="btnMenu_Click" Grid.Row="3" Height="40" Background="White"
  64. Padding="5" BorderBrush="#0B61A4" BorderThickness="3"
  65. FontFamily="Calibri" FontSize="20" Name="btnMenu"
  66. Width="230" Content="Вернуться в меню" Cursor="Hand"/>
  67. </Grid>
  68. </Page>