yavsc/BookAStar/BookAStar/Pages/BookQueriesPage.xaml

63 lines
2.8 KiB
Text
Raw Normal View History

2016-09-18 00:11:35 +02:00
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
2016-09-21 04:02:40 +02:00
xmlns:local="clr-namespace:BookAStar;assembly=BookAStar"
x:Class="BookAStar.Pages.BookQueriesPage"
2016-09-29 04:54:14 +02:00
Style="{StaticResource PageStyle}"
Page.Title="Les Demandes"
2016-09-21 04:02:40 +02:00
>
<ContentPage.Resources>
<ResourceDictionary>
2016-09-18 00:11:35 +02:00
2016-09-21 04:02:40 +02:00
<Style x:Key="labelStyle" TargetType="Label">
<Setter Property="TextColor" Value="{DynamicResource EmphasisTextColor}" />
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="FontSize" Value="{DynamicResource LargeFontSize}" />
<Setter Property="VerticalOptions" Value="Start" />
<Setter Property="LineBreakMode" Value="WordWrap" />
</Style>
2016-09-29 04:54:14 +02:00
<Style TargetType="Label">
<Setter Property="Style" Value="{StaticResource ContentLabelStyle}" />
</Style>
<Style TargetType="Button">
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
</Style>
2016-09-21 04:02:40 +02:00
</ResourceDictionary>
</ContentPage.Resources>
2016-10-14 16:21:03 +02:00
<ScrollView>
<StackLayout Padding="10,10,10,10" x:Name="mainLayout">
<ListView RefreshCommand="{Binding RefreshQueries}" IsPullToRefreshEnabled="True"
ItemsSource="{Binding Queries}" x:Name="list" ItemTapped="OnViewDetail" HasUnevenRows="true" RowHeight="80">
2016-09-21 04:02:40 +02:00
<ListView.ItemTemplate HeightRequest="80" VerticalOptions="StartAndExpand">
2016-09-18 00:11:35 +02:00
<DataTemplate>
<ViewCell>
<ViewCell.View>
2016-09-21 04:02:40 +02:00
<StackLayout Orientation="Horizontal" Padding="10,10,10,10" VerticalOptions="StartAndExpand">
2016-09-29 04:54:14 +02:00
<StackLayout Orientation="Vertical"
2016-09-21 04:02:40 +02:00
HeightRequest="80" VerticalOptions="StartAndExpand">
2016-09-18 00:11:35 +02:00
2016-09-21 04:02:40 +02:00
<StackLayout Orientation="Vertical" >
<Image Source="{Binding Client.Avatar}" />
<Label Text="{Binding Client.UserName}"
Style="{StaticResource labelStyle}"></Label>
</StackLayout>
<Label LineBreakMode="WordWrap" Text="{Binding EventDate, StringFormat='{0:dddd d MMMM à HH:mm}'}" FontSize="12" FontFamily="Italic"/>
</StackLayout>
2016-10-14 16:21:03 +02:00
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand">
2016-09-21 04:02:40 +02:00
<Label LineBreakMode="WordWrap" Text="{Binding Location.Address}"/>
<Label Text="{Binding Previsionnal}"/>
<Label Text="{Binding Id}" HorizontalTextAlignment="End"/>
2016-09-18 00:11:35 +02:00
</StackLayout>
</StackLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
2016-10-14 16:21:03 +02:00
</ScrollView>
2016-09-18 00:11:35 +02:00
</ContentPage>