1

I know this question has been asked before, but the other answers don't work for me because I'm on Windows Phone 7.

I have a TextBlock whose Text is not known until runtime. I need to make all links clickable. My approach is basically the one described here, but there is no Hyperlink class in the WP7 SDK and I can't add a HyperlinkButton to textBlock.Inlines. Am I doing something wrong, or do I need a different approach?

Community
  • 1
  • 1
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699

1 Answers1

2

WrapPanel with TextBlocks and HyperlinkButtons has been a pattern used for this problem on the phone platform.

Mick N
  • 14,892
  • 2
  • 35
  • 41
  • Ok, and is there a way to make the `HyperlinkButton` automatically open a `WebBrowserTask` on tap, or must I wire that up manually? – Nick Heiner Dec 28 '10 at 08:48
  • This thread covers that topic well... http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/98fefb30-a9f9-4a5f-9942-6965cb2f2e3c – Mick N Dec 28 '10 at 09:48