123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <Page x:Class="HelpHelf.Pages.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:HelpHelf.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="MainPage">
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="70"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="70"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.ColumnSpan="2" VerticalAlignment="Center"
- Orientation="Horizontal" HorizontalAlignment="Left"
- Grid.Row="0">
- <Button Click="btnPersonalAccount_Click" Background="white" Padding="5"
- BorderBrush="#0B61A4" BorderThickness="3"
- FontFamily="Calibri" FontSize="20"
- Name="btnPersonalAccount" Width="160" Content="Личный кабинет"
- Cursor="Hand"/>
- </StackPanel>
- <StackPanel Grid.ColumnSpan="2" VerticalAlignment="Center"
- Orientation="Horizontal" HorizontalAlignment="Right"
- Grid.Row="0">
- <TextBlock VerticalAlignment="Center" Margin="0,0,20,0" FontFamily="Calibri"
- Foreground="#0B61A4" FontWeight="Bold" FontSize="26"
- Name="tbName"/>
- <Button Click="btnExit_Click" Background="White" Padding="5"
- BorderBrush="#0B61A4" BorderThickness="3"
- FontFamily="Calibri" FontSize="20" Name="btnExit"
- Width="140" Content="Выход" Cursor="Hand"/>
- </StackPanel>
- <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center"
- Margin="0,0,20,0" FontFamily="Calibri" Foreground="#0B61A4"
- FontWeight="Bold" FontSize="20" Grid.Row="1"
- Text="Дневник самочувствия"/>
- <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center"
- Margin="0,0,20,0" FontFamily="Calibri" Foreground="#0B61A4"
- FontWeight="Bold" FontSize="20" Grid.Row="1" Grid.Column="1"
- Text="Результаты тестирования"/>
- <Button Click="btnAddBlog_Click" Grid.Row="3" Height="40" Background="White"
- Padding="5" BorderBrush="#0B61A4" BorderThickness="3"
- FontFamily="Calibri" FontSize="20" Name="btnAddBlog"
- Width="300" Content="Добавить запись в дневник" Cursor="Hand"/>
- <Button Click="btnTest_Click" Grid.Row="3" Grid.Column="1" Height="40" Background="White"
- Padding="5" BorderBrush="#0B61A4" BorderThickness="3"
- FontFamily="Calibri" FontSize="20" Name="btnTest"
- Width="300" Content="Пройти тестирование" Cursor="Hand"/>
- <ListView Name="listBlogs" Grid.Row="2"
- HorizontalContentAlignment="Stretch"
- ScrollViewer.CanContentScroll="False">
- <ListView.ItemTemplate>
- <DataTemplate>
- <StackPanel>
- <Border BorderBrush="#0B61A4" BorderThickness="2"
- CornerRadius="10">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="3*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <TextBlock Margin="10,0"
- TextWrapping="WrapWithOverflow"
- VerticalAlignment="Center" FontFamily="Calibri"
- FontSize="20" Grid.Row="0" Text="{Binding Entry}"/>
- <TextBlock Margin="0,0,10,0"
- TextWrapping="WrapWithOverflow"
- VerticalAlignment="Center" HorizontalAlignment="Right"
- FontFamily="Calibri" FontSize="16" Grid.Row="1"
- Text="{Binding Date, StringFormat={}dd.MM.yyyy}"/>
- </Grid>
- </Border>
- </StackPanel>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <ListView SelectionChanged="listTest_SelectionChanged" ScrollViewer.CanContentScroll="False" Name="listTest" Grid.Row="2"
- Grid.Column="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- HorizontalContentAlignment="Stretch">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid>
- <StackPanel>
- <TextBlock TextWrapping="WrapWithOverflow" FontFamily="Calibri"
- FontSize="20">
- <Run Text="Дата:" FontWeight="Bold"/>
- <Run Text="{Binding Date, StringFormat={}dd.MM.yyyy}"/>
- </TextBlock>
- <TextBlock TextWrapping="WrapWithOverflow" FontFamily="Calibri"
- FontSize="20">
- <Run Text="Заболевание:" FontWeight="Bold"/>
- <Run Text="{Binding Diseases, Mode=OneWay}"/>
- </TextBlock>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <TextBlock Name="tbEmptyBlog" Visibility="Collapsed" VerticalAlignment="Center"
- HorizontalAlignment="Center" Margin="0,0,20,0" FontFamily="Calibri"
- FontWeight="Bold" FontSize="20" Grid.Row="2" Grid.Column="0"
- Text="Записи не найдены"/>
- <TextBlock Name="tbEmptyTest" Visibility="Collapsed" VerticalAlignment="Center"
- HorizontalAlignment="Center" Margin="0,0,20,0" FontFamily="Calibri"
- FontWeight="Bold" FontSize="20" Grid.Row="2" Grid.Column="1"
- Text="Результаты тестирования не найдены"/>
- </Grid>
- </Page>
|