48 lines
1.9 KiB
XML
48 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:local="clr-namespace:ZicMoove;assembly=ZicMoove"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="ZicMoove.Pages.UserProfile.AccountChooserPage"
|
|
Title="{x:Static local:Strings.UserAccounts}"
|
|
Style="{StaticResource PageStyle}"
|
|
xmlns:lc="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
|
|
xmlns:lb="clr-namespace:XLabs.Forms.Behaviors;assembly=XLabs.Forms">
|
|
|
|
<StackLayout>
|
|
<Label Text="Compte utilisateur" StyleClass="Header"/>
|
|
|
|
<ListView x:Name="AccountListView"
|
|
SeparatorVisibility="Default"
|
|
VerticalOptions="FillAndExpand"
|
|
ItemsSource="{x:Static local:Settings.MainSettings.AccountList}"
|
|
>
|
|
<ListView.Header>
|
|
<StackLayout Orientation="Horizontal">
|
|
<Button x:Name="AddAccountBtn" Text="Connection, ou création d'un compte" />
|
|
</StackLayout>
|
|
</ListView.Header>
|
|
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell>
|
|
<Grid Padding="5"
|
|
ColumnSpacing="10"
|
|
RowSpacing="2" >
|
|
<Image Grid.Column="0" Source="{Binding AvatarSource}" HeightRequest="80" />
|
|
<Label Grid.Column="1" Text="{Binding UserName}" >
|
|
</Label>
|
|
<Label Grid.Column="2" Text="{Binding EMails.ToString()}" />
|
|
<Label Grid.Column="3" Text="{Binding Roles.ToString()}" />
|
|
<Label Grid.Column="4" Text="{Binding Address}" />
|
|
</Grid>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
<ListView.Footer>
|
|
<StackLayout></StackLayout>
|
|
</ListView.Footer>
|
|
|
|
</ListView>
|
|
|
|
</StackLayout>
|
|
</ContentPage>
|