Skip to content

Commit 366c95e

Browse files
author
Frederik Terstappen
committed
Hyperlinks included in Textblock styles
1 parent f20a7ac commit 366c95e

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed
Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,80 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3+
<ResourceDictionary.MergedDictionaries>
4+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Hyperlink.xaml" />
5+
</ResourceDictionary.MergedDictionaries>
36
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignCaptionTextBlock">
7+
<Style.Resources>
8+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignCaptionHyperlink}" />
9+
</Style.Resources>
410
<Setter Property="FontSize" Value="12"/>
511
<Setter Property="FontWeight" Value="Regular"/>
612
</Style>
713
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignBody1TextBlock">
14+
<Style.Resources>
15+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignBody1Hyperlink}" />
16+
</Style.Resources>
817
<Setter Property="FontSize" Value="13"/>
918
<Setter Property="FontWeight" Value="Regular"/>
1019
</Style>
1120
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignBody2TextBlock">
21+
<Style.Resources>
22+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignBody2Hyperlink}" />
23+
</Style.Resources>
1224
<Setter Property="FontSize" Value="13"/>
1325
<Setter Property="FontWeight" Value="Medium"/>
1426
</Style>
1527
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignSubheadingTextBlock">
28+
<Style.Resources>
29+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignSubheadingHyperlink}" />
30+
</Style.Resources>
1631
<Setter Property="FontSize" Value="15"/>
1732
<Setter Property="FontWeight" Value="Regular"/>
1833
</Style>
1934
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignTitleTextBlock">
35+
<Style.Resources>
36+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignTitleHyperlink}" />
37+
</Style.Resources>
2038
<Setter Property="FontSize" Value="20"/>
2139
<Setter Property="FontWeight" Value="Medium"/>
2240
</Style>
2341
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignHeadlineTextBlock">
42+
<Style.Resources>
43+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignHeadlineHyperlink}" />
44+
</Style.Resources>
2445
<Setter Property="FontSize" Value="24"/>
2546
<Setter Property="FontWeight" Value="Regular"/>
2647
</Style>
2748
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignDisplay1TextBlock">
49+
<Style.Resources>
50+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignDisplay1Hyperlink}" />
51+
</Style.Resources>
2852
<Setter Property="FontSize" Value="34"/>
2953
<Setter Property="FontWeight" Value="Regular"/>
3054
</Style>
3155
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignDisplay2TextBlock">
56+
<Style.Resources>
57+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignDisplay2Hyperlink}" />
58+
</Style.Resources>
3259
<Setter Property="FontSize" Value="45"/>
3360
<Setter Property="FontWeight" Value="Regular"/>
3461
</Style>
3562
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignDisplay3TextBlock">
63+
<Style.Resources>
64+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignDisplay3Hyperlink}" />
65+
</Style.Resources>
3666
<Setter Property="FontSize" Value="56"/>
3767
<Setter Property="FontWeight" Value="Regular"/>
3868
</Style>
3969
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignDisplay4TextBlock">
70+
<Style.Resources>
71+
<Style TargetType="Hyperlink" BasedOn="{StaticResource MaterialDesignDisplay4Hyperlink}" />
72+
</Style.Resources>
4073
<Setter Property="FontSize" Value="112"/>
4174
<Setter Property="FontWeight" Value="Light"/>
4275
</Style>
4376
<Style TargetType="{x:Type TextBlock}" x:Key="MaterialDesignButtonTextBlock">
4477
<Setter Property="FontSize" Value="14"/>
4578
<Setter Property="FontWeight" Value="Medium"/>
46-
</Style>
79+
</Style>
4780
</ResourceDictionary>

0 commit comments

Comments
 (0)