<ListView ItemsSource="{Binding Details}"ItemSelected="ListViewSample_OnItemSelected">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<stacklayout>
<Label x:Name="Number" Text="{Binding Number}"/>
<html:HtmlLabel x:Name="Text" Text="{Binding Text}"/>
</stacklayout>
</ViewCell>
</DataTemplate>
<ListView.ItemTemplate>
当我们单击数字标签时,“ ListViewSample_OnItemSelected”正在触发,但是当我们单击“文本”标签时,事件未触发
答案 0 :(得分:0)
杰森的回答对我也有用:
<html:HtmlLabel x:Name="Text" Text="{Binding Text}" InputTransparent="True"/>