You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.3 KiB
49 lines
2.3 KiB
6 months ago
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||
|
x:Class="Justice.Views.HelplinePage"
|
||
|
Title="Helpline Numbers">
|
||
|
|
||
|
<StackLayout Padding="20">
|
||
|
<Label Text="Helpline Numbers" FontSize="Large" HorizontalOptions="Center" />
|
||
|
|
||
|
<!-- List of Helplines -->
|
||
|
<ListView x:Name="HelplineListView" HasUnevenRows="True">
|
||
|
<ListView.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<ViewCell>
|
||
|
<Grid RowSpacing="5" ColumnSpacing="10">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<!-- Equal width for each column -->
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Label Text="{Binding AuthorityType}"
|
||
|
FontSize="Small"
|
||
|
TextColor="Gray"
|
||
|
Grid.Column="0" />
|
||
|
<Label Text="Number:"
|
||
|
FontSize="Small"
|
||
|
FontAttributes="Bold"
|
||
|
TextColor="Gray"
|
||
|
Grid.Column="1"
|
||
|
HorizontalOptions="End" />
|
||
|
<Label Text="{Binding Number}"
|
||
|
FontSize="Small"
|
||
|
TextColor="Gray"
|
||
|
Grid.Column="2" />
|
||
|
<Button Text="Call"
|
||
|
FontSize="Small"
|
||
|
Clicked="OnCallButtonClicked"
|
||
|
CommandParameter="{Binding Number}"
|
||
|
Grid.Column="3"
|
||
|
HorizontalOptions="End" />
|
||
|
</Grid>
|
||
|
</ViewCell>
|
||
|
</DataTemplate>
|
||
|
</ListView.ItemTemplate>
|
||
|
</ListView>
|
||
|
</StackLayout>
|
||
|
</ContentPage>
|