Text wrapping in WPF hyperlink
问题 In my WPF application I have this: <StackPanel> <TextBlock> <Hyperlink> <TextBlock TextWrapping="Wrap" Name="HyperlinkText" /> </Hyperlink> </TextBlock> </StackPanel> But if I set HyperlinkText.Text to a long text that wraps, the whole text is underlined only once at the bottom (see image). Is there a way to have every line underlined separately without manual wrapping? 回答1: An easier way to achieve that is to use Run instead of TextBlock. Hope it helps. 回答2: This is a really, really annoying