1
+ <ResourceDictionary xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3
+ xmlns : cache =" clr-namespace:GitHub.VisualStudio.Helpers"
4
+ xmlns : ui =" clr-namespace:GitHub.UI;assembly=GitHub.UI" >
5
+
6
+ <ResourceDictionary .MergedDictionaries>
7
+ <cache : SharedDictionaryManager Source =" pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" />
8
+ </ResourceDictionary .MergedDictionaries>
9
+
10
+ <Style x : Key =" HyperLinkToggleButton" TargetType =" ToggleButton" >
11
+ <Setter Property =" Template" >
12
+ <Setter .Value>
13
+ <ControlTemplate TargetType =" ToggleButton" >
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" />
41
+ </TextBlock >
42
+ </ControlTemplate >
43
+ </Setter .Value>
44
+ </Setter >
45
+ </Style >
46
+
47
+ <Style TargetType =" {x:Type ui:LinkDropDown}" >
48
+ <Setter Property =" Foreground" Value =" {DynamicResource GitHubActionLinkItemBrush}" />
49
+ <Setter Property =" Template" >
50
+ <Setter .Value>
51
+ <ControlTemplate TargetType =" ui:LinkDropDown" >
52
+ <Grid >
53
+ <ToggleButton Style =" {StaticResource HyperLinkToggleButton}"
54
+ Content =" {TemplateBinding LinkText}"
55
+ Foreground =" {TemplateBinding Foreground}"
56
+ IsChecked =" {Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
57
+ IsTabStop =" False" />
58
+ <Popup Name =" PART_Popup"
59
+ AllowsTransparency =" True"
60
+ IsOpen =" {TemplateBinding IsDropDownOpen}"
61
+ Placement =" Bottom" >
62
+ <Popup .Resources>
63
+ <Style BasedOn =" {StaticResource {x:Type ComboBoxItem}}" TargetType =" {x:Type ComboBoxItem}" >
64
+ <Setter Property =" Foreground" Value =" {DynamicResource GitHubButtonForegroundBrush}" />
65
+ <Setter Property =" Padding" Value =" 3" />
66
+ <Setter Property =" HorizontalContentAlignment" Value =" Stretch" />
67
+ </Style >
68
+ </Popup .Resources>
69
+ <Border Style =" {DynamicResource GitHubComboBoxBorder}" >
70
+ <DockPanel Style =" {DynamicResource GitHubComboBoxDockPanelContainer}"
71
+ MinWidth =" 100" >
72
+ <ScrollViewer VerticalScrollBarVisibility =" Auto" >
73
+ <ItemsPresenter />
74
+ </ScrollViewer >
75
+ </DockPanel >
76
+ </Border >
77
+ </Popup >
78
+ </Grid >
79
+ </ControlTemplate >
80
+ </Setter .Value>
81
+ </Setter >
82
+ </Style >
83
+
84
+ </ResourceDictionary >
0 commit comments