Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin表单-Html2Xaml转换器与span TapgestureRecognitizer命令一起出现问题_Xaml_Xamarin_Xslt_Xamarin.forms - Fatal编程技术网

Xamarin表单-Html2Xaml转换器与span TapgestureRecognitizer命令一起出现问题

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

我正在尝试将格式化字符串xaml中的自定义html文本转换为任何标签。在那里,我有一个
标记,它将通过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}" />