网格控件显示超链接

编程入门 行业动态 更新时间:2024-10-10 02:14:24
本文介绍了网格控件显示超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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.

更多推荐

网格控件显示超链接

本文发布于:2023-11-28 08:43:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641711.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   控件   超链接

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!