Xamarin表单-Html2Xaml转换器与span TapgestureRecognitizer命令一起出现问题
我正在尝试将格式化字符串xaml中的自定义html文本转换为任何标签。在那里,我有一个Xamarin表单-Html2Xaml转换器与span TapgestureRecognitizer命令一起出现问题,xaml,xamarin,xslt,xamarin.forms,Xaml,Xamarin,Xslt,Xamarin.forms,我正在尝试将格式化字符串xaml中的自定义html文本转换为任何标签。在那里,我有一个标记,它将通过TapGestureRecognizer转换为一个span: <xsl:template match="A | a" priority="9"> <Span TextDecorations="Underline"> <xsl:attribute name="Text"> <xsl:apply-template
标记,它将通过TapGestureRecognizer转换为一个span:
<xsl:template match="A | a" priority="9">
<Span TextDecorations="Underline">
<xsl:attribute name="Text">
<xsl:apply-templates />
</xsl:attribute>
<Span.GestureRecognizers>
<TapGestureRecognizer Command="{{Binding PopupContentCommand}}">
<xsl:attribute name="CommandParameter">
<xsl:value-of select="@href" />
</xsl:attribute>
</TapGestureRecognizer>
</Span.GestureRecognizers>
</Span>
</xsl:template>
最后是一个模拟器问题。因为在真正的设备中,这是毫无问题的
<Label attachedProperties:Properties.Html="{Binding HtmlText}" />