成员“TextTrimming”在 Expression Blend 中无法识别?

发布于 2024-09-03 02:38:18 字数 848 浏览 2 评论 0原文

所以我使用 Silverlight 4.0 我有以下代码,但它给了我以下错误:“成员“TextTrimming”无法识别或无法访问”,但当我在 Visual Studio 2010 中运行时它工作正常。

<TextBlock Margin="0,30,28.789,50.455" TextWrapping="Wrap" TextTrimming="WordEllipsis" HorizontalAlignment="Right" Width="117" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Text="This is some text in a sticky note for the sake of making sure that the text will fit and that the user can see all the necessary details that are going to be available and stuff" LineHeight="-1" FontWeight="Normal">
<TextBlock.RenderTransform>
    <TransformGroup>
        <ScaleTransform/>
        <SkewTransform AngleX="8"/>
        <RotateTransform/>
        <TranslateTransform/>
    </TransformGroup>
</TextBlock.RenderTransform>

So I am using Silverlight 4.0 I have the following code but its giving me the following error: "The member "TextTrimming" is not recognized or is not accessible", but it works fine when I run in Visual Studio 2010.

<TextBlock Margin="0,30,28.789,50.455" TextWrapping="Wrap" TextTrimming="WordEllipsis" HorizontalAlignment="Right" Width="117" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Text="This is some text in a sticky note for the sake of making sure that the text will fit and that the user can see all the necessary details that are going to be available and stuff" LineHeight="-1" FontWeight="Normal">
<TextBlock.RenderTransform>
    <TransformGroup>
        <ScaleTransform/>
        <SkewTransform AngleX="8"/>
        <RotateTransform/>
        <TranslateTransform/>
    </TransformGroup>
</TextBlock.RenderTransform>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

话少心凉 2024-09-10 02:38:18

哪个版本的 Expression Blend?据我所知,只有 Expression Blend 4 针对 Silverlight 4。

Which version of Expression Blend? Only Expression Blend 4 targets Silverlight 4 as far as I know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文