TextCellとSwitchCellの要素を持つViewCellを作成しようとしています。
これは私のコード - あるは 'Xamarin.Forms.TextCell'から 'Xamarin.Forms.View'に変換できません
<ListView x:Name="AlarmList" HasUnevenRows="True" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal">
<TextCell TextColor="#CCCCCC" Text="{Binding Name}" DetailColor="Red" Detail="{Binding Address}"></TextCell>
<SwitchCell />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
私が手にエラーがある: 'Xamarin.Forms.View'
に 'Xamarin.Forms.TextCell' から変換することはできません
これに代わるものは、これらを使用しています
<Label ></Label> <Switch ></Switch>
細胞は唯一のリストと、表で使用することができ、彼らは他のレイアウト内にネストすることはできません。 – Jason