WinRT-RichTextBlock.Html2Xaml icon indicating copy to clipboard operation
WinRT-RichTextBlock.Html2Xaml copied to clipboard

Questions about Hyperlinks

Open Luke47 opened this issue 8 years ago • 1 comments

First of all, thanks for this awesome converter!

For now, it really works well. I have some problems with hyperlinks though:

  • I've set the margin of the HyperlinkButton style to 2,0,2,-10 to align perfectly with surrounding text. However, if two HyperlinkButton are next to each other, the space between them is too small. Is there any way I can increase this space without altering the margins? (which would mess up spacing between HyperlinkButton and normal text)
  • How can I get HyperlinkButtons to underline their text? I've tried the following with the TextDecoration property, but this causes the whole parsing to fail.
<Style x:Key="Link" TargetType="HyperlinkButton">
          <Setter Property="BorderThickness" Value="0" />
          <Setter Property="FontSize" Value="21.333" />
          <Setter Property="Margin" Value="2,0,2,-10" />
          <Setter Property="TextDecorations" Value="Underline" />
</Style>

Thank you!

Luke47 avatar Jul 06 '16 08:07 Luke47

I just debugged it further. The code seems to get rid of the whitespace between links.

example string: <p><a href="someUrl">Lukas</a> <a href="someUrl">Stefan</a> test</p>

Luke47 avatar Jul 06 '16 10:07 Luke47