本文介绍了网格控件显示超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
For Each Status As Status In A.List grdList.RowDefinitions.Add(New RowDefinition() With {.Height = GridLength.Auto}) Dim TextBlock As New TextBlock() TextBlock.Margin = New Thickness(4) TextBlock.TextWrapping = TextWrapping.Wrap TextBlock.Inlines.Add(Status.Text) Grid.SetColumn(TexatBlock, 1) Grid.SetRow(TextBlock, grdList.RowDefinitions.Count - 1) grdList.Children.Add(TextBlock) Next
上面的代码来自网络上接收的文本,这些文本被添加到Grid方法的列表中. 文本在URL的中间位置〜〜〜〜作为文本这一部分的一部分,不会显示为超链接.
The above code comes from the web to receive the text, the text added to the list of Grid method. The text received middle of the URL ~ ~ ~ ~ As part of this portion of the text, which does not appear as a hyperlink. Be displayed as a hyperlink to that part again?
推荐答案您在问的是您之前问过的问题,而忽略了给出的答案.没有什么能神奇地将您的文本变成超链接.您需要在文本流中插入一个超链接控件,以便您要显示为超链接的部分可以这样做.如果您买了一本书并仔细研究,则可以从编程中了解足够的知识,而不是从网络上随意复制代码. You are asking a question you''ve asked before, and ignoring the answer you were given. Nothing will magically turn your text into a hyperlink for you. You need to insert a hyperlink control into your text flow, so that the section you want to show as a hyperlink, will do so. Instead of copying code at random from the web, if you bought a book and worked through it, you might know enough about programming to understand the answers we give.
更多推荐
网格控件显示超链接
发布评论