我正在使用带有列表视图的单选按钮,并在列表视图项目上单击我想选中/选中单选按钮,但不幸的是无法选择单选按钮。
<StackLayout VerticalOptions="CenterAndExpand" HeightRequest="200" HorizontalOptions="CenterAndExpand" >
<ListView RowHeight="45" IsVisible="true" ItemsSource="{Binding Items}" BackgroundColor="#5679d1"
SelectedItem="{Binding objItemSelected, Mode=TwoWay}"
HasUnevenRows="true" SeparatorVisibility="Default" SeparatorColor="White">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Label Text="{Binding Questions}" TextColor="Black" Grid.Column="0"
Grid.Row="0" Grid.ColumnSpan="2" HorizontalOptions="Center">
</Label>
<controls:CustomRadioButton HeightRequest="15" HorizontalOptions="End" Checked="{Binding Radiobtn}" IsVisible="true" Grid.Row="0" Grid.Column="3"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>