12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <Page x:Class="School.PageNearNote"
- 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:MinHeight="500" d:MinWidth="800"
- Title="Ближайшие записи">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="350"/>
- <RowDefinition Height="50"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <TextBlock x:Name="Title" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Ближайшие записи" Style="{StaticResource HeaderText}"/>
- </Grid>
- <ListView Name="ClassNote" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Hidden" HorizontalContentAlignment="Stretch" AlternationCount="2">
- <ListView.ItemContainerStyle>
- <Style TargetType="ListViewItem">
- <Style.Triggers>
- <Trigger Property="ItemsControl.AlternationIndex" Value="0">
- <Setter Property="Background" Value="#e7fabf" />
- </Trigger>
- <Trigger Property="ItemsControl.AlternationIndex" Value="1">
- <Setter Property="Background" Value="White" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </ListView.ItemContainerStyle>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Style="{StaticResource BorderStyle}">
- <Grid VerticalAlignment="Center" >
- <StackPanel>
- <TextBlock Text="{Binding Service.Title,StringFormat=Наименование услуги: {0}}"></TextBlock>
- <TextBlock Text="{Binding Client.FullName,StringFormat=ФИО клиента: {0}}"></TextBlock>
- <TextBlock Text="{Binding Client.Email,StringFormat=Email: {0}}"></TextBlock>
- <TextBlock Text="{Binding Client.Phone,StringFormat=Телефон: {0}}"></TextBlock>
- <TextBlock Text="{Binding StartTime, StringFormat=Дата и Время записи: {0:dd MMMM yyyy HH:mm}}"></TextBlock>
- <TextBlock Text="{Binding RemainingTime,StringFormat=Оставшееся время до занятия: {0}}" Foreground="{Binding NearetsNote}"/>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <Button Grid.Row="2" Name="Home" Template="{StaticResource Button}" Click="Home_Click">На главную</Button>
- </Grid>
- </Page>
|