2

我有这段代码出现在<TableSection>

<?xml version="1.0" encoding="UTF-8"?>
<ViewCell 
    xmlns="http://xamarin.com/schemas/2014/forms" 
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
    x:Class="Japanese.CategoryGroupCommentViewCell">
    <StackLayout 
        Orientation="Horizontal"
        Padding="20,10"
        BackgroundColor="#EAEAF1">
        <Label
            Style="{DynamicResource ListItemDetailTextStyleStyle}"
            TextColor="#59595F" 
            LineBreakMode="WordWrap" 
            Text="Click on the Category Groups and then select one or more Categories from the page that appears"
            VerticalOptions="Center"/>
    </StackLayout>
    </ViewCell>

当它显示时,我看到以下文字:

单击类别组,然后选择

其余的被切断。

我也试过这个,它是一样的:

<ViewCell 
    xmlns="http://xamarin.com/schemas/2014/forms" 
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
    x:Class="Japanese.CategoryGroupCommentViewCell">
    <Grid 
        VerticalOptions="CenterAndExpand"
        Padding="20,10"
        BackgroundColor="#EAEAF1">
        <Label
            Style="{DynamicResource ListItemDetailTextStyleStyle}"
            TextColor="#59595F" 
            Text="Click on the Category Groups and then select one or more Categories from the page that appears"
            HorizontalOptions="FillAndExpand"
            VerticalOptions="CenterAndExpand"/>
    </Grid>
</ViewCell>

谁能告诉我我可能做错了什么?

4

1 回答 1

4

请删除方向属性并尝试

已编辑

如果您放在那里,请删除ListView中的RowHeight并在ListView中添加HasUnevenRows="true"

于 2017-08-23T04:42:44.650 回答