Silverlight xaml TextBlock.Text with CDATA 在运行时不显示? [英] Silverlight xaml TextBlock.Text with CDATA not showing up at runtime?

查看:36
本文介绍了Silverlight xaml TextBlock.Text with CDATA 在运行时不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下 xaml 导致文本Activate a test to the left".在运行时和设计时可见(在 Vs2010 中):

The following xaml causes the text "Activate a test to the left." to be visible at run-time and at design-time (in Vs2010):

<TextBlock TextWrapping="Wrap">
    <TextBlock.Text>Activate a test to the left.</TextBlock.Text>
</TextBlock>

以下内容在运行时不显示,但在设计时可见:

The following shows nothing at run-time, but the text IS visible at design-time:

<TextBlock TextWrapping="Wrap">
    <TextBlock.Text><![CDATA[Activate a test to the left.]]></TextBlock.Text>
</TextBlock>

有什么问题吗?

推荐答案

这里有一个关于这个主题的广泛讨论:

Here is an extensive discussion on this very topic:

http://forums.silverlight.net/forums/t/187623.aspx

这篇关于Silverlight xaml TextBlock.Text with CDATA 在运行时不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆