33 lines
1.6 KiB
XML
33 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<l:AppContentPage
|
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:l="clr-namespace:Blahblah.FlowerApp"
|
|
xmlns:ctl="clr-namespace:Blahblah.FlowerApp.Controls"
|
|
xmlns:mdl="clr-namespace:Blahblah.FlowerApp.Data.Model"
|
|
xmlns:user="clr-namespace:Blahblah.FlowerApp.Views.User"
|
|
x:Class="Blahblah.FlowerApp.Views.User.LogPage"
|
|
x:Name="logPage"
|
|
x:DataType="user:LogPage"
|
|
Title="Logs">
|
|
|
|
<Grid BindingContext="{x:Reference logPage}">
|
|
<ListView ItemsSource="{Binding Logs}">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate x:DataType="mdl:LogItem">
|
|
<ViewCell>
|
|
<HorizontalStackLayout Margin="16,0" Spacing="12">
|
|
<HorizontalStackLayout.GestureRecognizers>
|
|
<TapGestureRecognizer Command="{Binding ItemCommand, Source={x:Reference logPage}}"
|
|
CommandParameter="{Binding .}"/>
|
|
</HorizontalStackLayout.GestureRecognizers>
|
|
<ctl:SecondaryLabel FontSize="10" Text="{Binding LogUnixTime, Converter={StaticResource dateTimeConverter}}" VerticalOptions="Center"/>
|
|
<Label Text="{Binding Message}" VerticalOptions="Center" LineBreakMode="TailTruncation"/>
|
|
</HorizontalStackLayout>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Grid>
|
|
|
|
</l:AppContentPage> |