How to get HyperLink Text from C# in WPF?

后端 未结 3 2099
悲哀的现实
悲哀的现实 2020-12-18 06:19

I have a WPF Hyperlink which I\'m trying to get the text content from.

For example:



        
3条回答
  •  再見小時候
    2020-12-18 07:00

    Just put a TextBlock inside and enjoy its binding flexibility .

    If it's still not an option for you - use Run.Text property which is perfectly suitable solution for Hyperlink

提交回复
热议问题