有没有办法在 TextBlock 块内放置一个 HyperlinkBut​​ton? (Windows 手机 7)

发布于 2024-10-09 23:09:21 字数 203 浏览 0 评论 0原文

我有一大段文本,我想在其中“嵌入”一个超链接。像 this 这样的东西 - 类似于 html a 标签。

我假设有一种简单的方法可以使用 Windows Phone 7 中的 HyperlinkBut​​ton 来执行此操作 - Silverlight 只是没有找到它......

I have a big block of text and I want to have a hyperlink "embedded" inside it. Something like this - akin to an html a tag.

I'm assuming there's an easy way to do this with the HyperlinkButton in Windows Phone 7 and - Silverlight just didn't find it...

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

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

发布评论

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

评论(1

清晰传感 2024-10-16 23:09:21

据我所知,并没有真正好的方法 - 典型的方法是使用 WrapPanel(在 Windows Phone Toolkit 的 SL 中),并用 TextBlock 和 HyperlinkBut​​ton 元素填充它。

Web 浏览器(在台式 PC/Mac 上)中的 Silverlight 4 具有 RichTextBox,它具有可以内联文本的超链接元素,因此如果您也在桌面上执行 SL 操作,那么这是一个更好的方法。

There's not really a good way that I know of - the typical way of doing this is to use a WrapPanel (in the SL for Windows Phone Toolkit), and fill it with TextBlock and HyperlinkButton elements.

Silverlight 4 in a web browser (on a desktop PC/Mac) has RichTextBox which has a Hyperlink element that can be inline with text, so if you're also doing SL stuff for the desktop, that's a much better way to do it there.

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