开发者

WP7 Silverlight: How to make the links in a textblock clickable?

开发者 https://www.devze.com 2023-02-01 23:41 出处:网络
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 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 T开发者_StackOverflow社区extBlock 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?


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

0

精彩评论

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