|
7 | 7 | <cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" /> |
8 | 8 | </ResourceDictionary.MergedDictionaries> |
9 | 9 |
|
10 | | - <Style x:Key="FakeHyperlink" TargetType="TextBlock"> |
11 | | - <Style.Triggers> |
12 | | - <MultiTrigger> |
13 | | - <MultiTrigger.Conditions> |
14 | | - <Condition Property="IsMouseOver" Value="true" /> |
15 | | - <Condition Property="IsEnabled" Value="true" /> |
16 | | - </MultiTrigger.Conditions> |
17 | | - <MultiTrigger.Setters> |
18 | | - <Setter Property="TextDecorations" Value="Underline" /> |
19 | | - <Setter Property="FrameworkElement.Cursor" Value="Hand" /> |
20 | | - </MultiTrigger.Setters> |
21 | | - </MultiTrigger> |
22 | | - </Style.Triggers> |
23 | | - <Setter Property="Cursor" Value="Hand" /> |
24 | | - </Style> |
25 | | - |
26 | 10 | <Style x:Key="HyperLinkToggleButton" TargetType="ToggleButton"> |
27 | 11 | <Setter Property="Template"> |
28 | 12 | <Setter.Value> |
29 | 13 | <ControlTemplate TargetType="ToggleButton"> |
30 | | - <TextBlock Style="{StaticResource FakeHyperlink}"> |
31 | | - <Run Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" /> |
32 | | - <Polygon Margin="2,0,0,1" |
33 | | - Fill="{TemplateBinding Foreground}" |
34 | | - Points="0,0 8,0 4,4 0,0"/> |
| 14 | + <TextBlock> |
| 15 | + <TextBlock.Style> |
| 16 | + <Style TargetType="TextBlock"> |
| 17 | + <Style.Triggers> |
| 18 | + <MultiDataTrigger> |
| 19 | + <MultiDataTrigger.Conditions> |
| 20 | + <Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" /> |
| 21 | + <Condition Binding="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}}" Value="true" /> |
| 22 | + <Condition Binding="{Binding Path=IsChecked, RelativeSource={RelativeSource TemplatedParent}}" Value="false" /> |
| 23 | + </MultiDataTrigger.Conditions> |
| 24 | + <MultiDataTrigger.Setters> |
| 25 | + <Setter Property="TextDecorations" Value="Underline" /> |
| 26 | + <Setter Property="FrameworkElement.Cursor" Value="Hand" /> |
| 27 | + </MultiDataTrigger.Setters> |
| 28 | + </MultiDataTrigger> |
| 29 | + <DataTrigger Binding="{Binding Path=IsPressed, RelativeSource={RelativeSource TemplatedParent}}" Value="true"> |
| 30 | + <Setter Property="TextDecorations" Value="Underline" /> |
| 31 | + <Setter Property="FrameworkElement.Cursor" Value="Hand" /> |
| 32 | + </DataTrigger> |
| 33 | + </Style.Triggers> |
| 34 | + <Setter Property="Cursor" Value="Hand" /> |
| 35 | + </Style> |
| 36 | + </TextBlock.Style> |
| 37 | + <Run Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" /> |
| 38 | + <Polygon Margin="2,0,0,1" |
| 39 | + Fill="{TemplateBinding Foreground}" |
| 40 | + Points="0,0 8,0 4,4 0,0"/> |
35 | 41 | </TextBlock> |
36 | 42 | </ControlTemplate> |
37 | 43 | </Setter.Value> |
|
0 commit comments