如何处理 Windows Phone 中 RichTextBox 元素中超链接的点击事件。这是我的 RichTextBox 元素代码:
<RichTextBox>
<Paragraph>
Download it directly to the <Hyperlink Foreground="Blue" TargetName="_blank" NavigateUri="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8">iTunes Store</Hyperlink> or <Hyperlink Foreground="Blue" TargetName="_blank" NavigateUri="https://market.android.com/details?id=com.strikersoft.meramal.se">Android Market</Hyperlink>. The application is launched for Swedish app store.
</Paragraph>
</RichTextBox>
最佳答案
RichTextBox 控件有 LinkClicked 事件。它处理其文本中的所有 url 点击。
关于c# - 如何处理在 RichTextBox 中单击超链接的事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10535812/