开发者

Is there a way to have a HyperlinkButton inside a block of TextBlock? (windows phone 7)

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...


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜