pageServiceNearRecord.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <Page x:Class="school.pageServiceNearRecord"
  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:school"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="pageServiceNearRecord">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <Grid Grid.Row="0" Margin="5">
  16. <Button Name="BtnBack" Click="BtnBackClick" FontSize="16" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10 0" Style="{StaticResource usuallyButtonNoFill}">Назад</Button>
  17. <TextBlock FontSize="26" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10 0" Style="{StaticResource usuallyTextBlockHeader}">Ближайшие записи</TextBlock>
  18. </Grid>
  19. <Grid Grid.Row="1" Margin="5">
  20. <DataGrid Name="DGRecords" AutoGenerateColumns="False" CanUserAddRows="False">
  21. <DataGrid.Columns>
  22. <DataGridTextColumn Header="Название услуги" Binding="{Binding Service.Title}" Width="*"></DataGridTextColumn>
  23. <DataGridTextColumn Header="ФИО клиента" Binding="{Binding fullName}" Width="*"></DataGridTextColumn>
  24. <DataGridTextColumn Header="Email" Binding="{Binding Client.Email}" Width="*"></DataGridTextColumn>
  25. <DataGridTextColumn Header="Телефон" Binding="{Binding Client.Phone}" Width="*"></DataGridTextColumn>
  26. <DataGridTextColumn Header="Дата записис" Binding="{Binding date}" Width="*"></DataGridTextColumn>
  27. <DataGridTextColumn Header="Время записи" Binding="{Binding time}" Width="*"></DataGridTextColumn>
  28. <DataGridTextColumn Header="Время до начала оказания услуги" Binding="{Binding otherTime}" Width="*">
  29. <DataGridTextColumn.ElementStyle>
  30. <Style TargetType="{x:Type TextBlock}">
  31. <Setter Property="Background" Value="{Binding colorRow}" />
  32. </Style>
  33. </DataGridTextColumn.ElementStyle>
  34. </DataGridTextColumn>
  35. </DataGrid.Columns>
  36. </DataGrid>
  37. </Grid>
  38. </Grid>
  39. </Page>