UWP RichEditBox: How to enable HyperLinks for loaded RTF files (Document.LoadFromStream)

Viewed 347

XAML:

<ScrollViewer x:Name="RtfEulaViewer" Grid.Row="1" VerticalAlignment="Top">
    <RichEditBox x:Name="RtfEula" IsHitTestVisible="False" IsFocusEngagementEnabled="False" IsReadOnly="True" 
         Background="{ThemeResource StandardBackground}" BorderThickness="0" TextWrapping="Wrap" />
</ScrollViewer>

Code:

StorageFile file = await StorageFile.GetFileFromPathAsync(filePath);
IRandomAccessStream stream = await file.OpenAsync(FileAccessMode.Read);
this.RtfEula.Document.LoadFromStream(TextSetOptions.FormatRtf, stream);

Absolute or relative HyperLinks in the RTF file that are click-able when it is opened by Word or WordPad, are just shown as normal text.

{\field{\*\fldinst HYPERLINK "http://www.microsoft.com"}{\fldrslt Microsoft}}

from the RTF specification is displayed in blue colour but is also inactive. The mouse pointer does not change if I move over it.

Is there a way to get active HyperLinks in some text box when loading an RTF file?

1 Answers
Related