<UserControl
    x:Class="WslSettings.Controls.HyperlinkTextBlock"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <TextBlock TextWrapping="WrapWholeWords">
        <!-- Note: The comments in between the elements prevents extra space from being added to the string -->
        <Run Text="{x:Bind TextBeforeHyperlink}" /><!--
        --><Hyperlink NavigateUri="{x:Bind NavigateUri}">
            <Run Text="{x:Bind HyperLinkText}" />
        </Hyperlink><!--
        --><Run Text="{x:Bind TextAfterHyperlink}" />
    </TextBlock>
</UserControl>
