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

Label show two lines text

$
0
0

I have a Label in StackLayout, when the Label's text need two line to show, I can't see the 2nd line text.

            <ListView x:Name="listView" ItemsSource="{Binding}">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                                <StackLayout Padding="0" Spacing="0" Orientation="Vertical">
                                    <StackLayout Padding="0" Spacing="10" Orientation="Horizontal">
                                    <Label Text="{Binding Number, StringFormat='{0:000}'}" FontSize="Micro" TextColor="Silver" />
                                    <Label Text="{Binding Nickname}" FontSize="Micro" TextColor="Silver" />
                                    <Label Text="{Binding Ip}" FontSize="Micro" TextColor="Silver" />
                                    </StackLayout>
                                <Label Text="{Binding Message}" FontSize="Medium" />
                                </StackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>

I think maybe I set the wrong attribute on Label, so set what is right ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>