123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <Page x:Class="school.pageServiceNearRecord"
- 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:school"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="pageServiceNearRecord">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="5">
- <Button Name="BtnBack" Click="BtnBackClick" FontSize="16" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10 0" Style="{StaticResource usuallyButtonNoFill}">Назад</Button>
- <TextBlock FontSize="26" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10 0" Style="{StaticResource usuallyTextBlockHeader}">Ближайшие записи</TextBlock>
- </Grid>
- <Grid Grid.Row="1" Margin="5">
- <DataGrid Name="DGRecords" AutoGenerateColumns="False" CanUserAddRows="False">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Название услуги" Binding="{Binding Service.Title}" Width="*"></DataGridTextColumn>
- <DataGridTextColumn Header="ФИО клиента" Binding="{Binding fullName}" Width="*"></DataGridTextColumn>
- <DataGridTextColumn Header="Email" Binding="{Binding Client.Email}" Width="*"></DataGridTextColumn>
- <DataGridTextColumn Header="Телефон" Binding="{Binding Client.Phone}" Width="*"></DataGridTextColumn>
- <DataGridTextColumn Header="Дата записис" Binding="{Binding date}" Width="*"></DataGridTextColumn>
- <DataGridTextColumn Header="Время записи" Binding="{Binding time}" Width="*"></DataGridTextColumn>
- <DataGridTextColumn Header="Время до начала оказания услуги" Binding="{Binding otherTime}" Width="*">
- <DataGridTextColumn.ElementStyle>
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="Background" Value="{Binding colorRow}" />
- </Style>
- </DataGridTextColumn.ElementStyle>
- </DataGridTextColumn>
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- </Grid>
- </Page>
|