<UserControl x:Class="RelhaxModpack.UI.RelhaxHyperlink"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:RelhaxModpack.UI"
             xmlns:windows="clr-namespace:RelhaxModpack.Windows"
             mc:Ignorable="d">
    <UserControl.Resources>
        <Style x:Key="textBlockStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Blue"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding DarkTheme, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type windows:RelhaxWindow}}}" Value="True">
                    <Setter Property="Foreground" Value="#FF468FDA"/>
                </DataTrigger>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Foreground" Value="Red"/>
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <!-- Set a default color above as Foreground -->
    <TextBlock x:Name="ParentTextBlock">
        <Hyperlink x:Name="TheHyperlink" Click="TheHyperlink_Click">
            <TextBlock x:Name="ChildTextblock" Style="{StaticResource textBlockStyle}"/>
        </Hyperlink>
    </TextBlock>
</UserControl>
