在 Expression Blend 中使用标注银光

发布于 2024-10-19 13:18:47 字数 170 浏览 2 评论 0原文

我有一个使用标注的 Expression Blend+Silverlight 应用程序。现在我想在单个标注中的指定持续时间后显示多个字符串。但我无法以编程方式设置标注的 ContentProperty - 它会引发异常。

那么我应该使用多个标注来显示多个字符串,还是有什么方法可以在运行时更改标注中的字符串内容?

I have an Expression Blend+Silverlight application that makes use of callouts. Now I want to show several strings each after a specified duration within a single callout. But I can't set the ContentProperty of the callout programmatically - it's throwing an exception.

So should I go in for multiple callouts to display multiple strings or is there any way I can change the string content within a callout at runtime?

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

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

发布评论

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

评论(1

吃颗糖壮壮胆 2024-10-26 13:18:47

我得到了解决方案。就像这样:

this.callout.Content = new TextBlock { Text = "whatever text" };

I got the solution. It's like this:

this.callout.Content = new TextBlock { Text = "whatever text" };

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