Xamarin.forms 如何将css样式应用于TextCell并更改TextColor

Xamarin.forms 如何将css样式应用于TextCell并更改TextColor,xamarin.forms,xamarin.forms-styles,Xamarin.forms,Xamarin.forms Styles,我想用CSS样式更改ListView中TextCell的TextColor 我尝试了以下操作,但颜色保持不变: MenuPage TextCell { color: aqua; textcolor: aqua; text-color: aqua; TextColor: aqua; } 我跟TextCell没什么关系。但如果可以将其作为ViewCell中的标签: <ListView.ItemTemplate> <DataTemplate&

我想用CSS样式更改ListView中TextCell的TextColor

我尝试了以下操作,但颜色保持不变:

MenuPage TextCell {
    color: aqua;
    textcolor: aqua;
    text-color: aqua;
    TextColor: aqua;
}

我跟TextCell没什么关系。但如果可以将其作为ViewCell中的标签:

<ListView.ItemTemplate>
    <DataTemplate>
        <ViewCell>
            <StackLayout>
                <Label Text="{Binding}" />
            </StackLayout>
        </ViewCell>
    </DataTemplate>
</ListView.ItemTemplate>
ListView StackLayout Label {
    font-size: 14;
    color: black;
}