yavsc/ZicMoove/ZicMoove/Pages/UserProfile/UserFiles.xaml

47 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ZicMoove.Pages.UserProfile.UserFiles"
Style="{StaticResource PageStyle}">
<ScrollView>
<StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="Dossiers:" />
<Label Text="{Binding UserName}" HorizontalOptions="Start" />
<Label Text="{Binding SubPath}" HorizontalOptions="Start" />
</StackLayout>
<ListView x:Name="filelist" ItemsSource="{Binding SubDirectories}"
RefreshCommand="{Binding RefreshCommand}"
SeparatorVisibility="Default"
VerticalOptions="Start">
<ListView.ItemTemplate >
<DataTemplate>
<ViewCell>
<ViewCell.View>
<Label Text="{Binding .}" />
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<ListView x:Name="dirlist" ItemsSource="{Binding FileInfo}"
RefreshCommand="{Binding RefreshCommand}"
SeparatorVisibility="Default"
VerticalOptions="Start" >
<ListView.ItemTemplate >
<DataTemplate>
<ViewCell>
<ViewCell.View>
<StackLayout Orientation="Horizontal">
<Label Text="{Binding Name}" />
<Label Text="{Binding Size, StringFormat='{0}b'}" />
</StackLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ScrollView>
</ContentPage>