Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

ListView with 2 Labels: One left andone right

$
0
0

Hi,
I have a ListView with two labels on each row. One should be at the left and the other on the right. Why doesn't this code work? It shows the two labels aligned to the left.

<StackLayout Padding="15,10,15,10"  Orientation="Horizontal" >
    <Label Text="{Binding Title}" YAlign="Center" FontSize="Medium" />
    <Label Text="{Binding Value}" YAlign="Center" XAlign="End" FontSize="Medium" FontAttributes="Bold"/>
</StackLayout>

Viewing all articles
Browse latest Browse all 75885

Trending Articles