-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessageCenterPage.xaml
More file actions
62 lines (52 loc) · 2.72 KB
/
MessageCenterPage.xaml
File metadata and controls
62 lines (52 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiSample.MessageCenterPage">
<RefreshView x:Name="refreshView"
Command="{Binding RefreshCommand}">
<ListView x:Name="listView" RowHeight="72" ItemSelected="ListView_ItemSelected">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<BoxView
Grid.RowSpan="2"
x:Name="isReadIndicator"
CornerRadius="7"
HeightRequest="14"
WidthRequest="14"
VerticalOptions="Center"
HorizontalOptions="Center">
<BoxView.Triggers>
<DataTrigger TargetType="BoxView" Binding="{Binding Unread}" Value="true">
<Setter Property="Color" Value="Green" />
</DataTrigger>
<DataTrigger TargetType="BoxView" Binding="{Binding Unread}" Value="false">
<Setter Property="Color" Value="Blue" />
</DataTrigger>
</BoxView.Triggers>
</BoxView>
<Label Grid.Column="1"
Text="{Binding Title}"
Margin="16,0,0,4" />
<Label Grid.Row="1"
Grid.Column="1"
Text="{Binding SentDate, StringFormat='{0:MMMM dd, yyyy, hh:mm}'}"
TextColor="Gray"
Margin="16,0,0,0"
VerticalOptions="End" />
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</RefreshView>
</ContentPage>