Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 420d202

Browse files
authored
Merge pull request #430 from /issues/411-clickable-pr-title
Make PR title a link
2 parents 401165e + f07f56b commit 420d202

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/GitHub.VisualStudio/UI/Views/Controls/PullRequestListItem.xaml

+14-11
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,21 @@
4747
Source="{Binding Author.Avatar}" />
4848
</StackPanel>
4949
</Grid>
50+
51+
<Button x:Name="title"
52+
Grid.Row="0"
53+
Grid.Column="1"
54+
HorizontalAlignment="Left"
55+
VerticalAlignment="Top"
56+
Foreground="{DynamicResource GitHubVsToolWindowText}"
57+
Margin="0,-3,5,0"
58+
FontSize="{DynamicResource {x:Static vsui:VsFonts.Environment122PercentFontSizeKey}}"
59+
Style="{StaticResource ActionLinkButton}"
60+
Content="{Binding Title}"
61+
ToolTip="{Binding Title}"
62+
Command="{Binding OpenPR, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:PullRequestListView}}}"
63+
CommandParameter="{Binding Number}"/>
5064

51-
<TextBlock x:Name="title"
52-
Grid.Row="0"
53-
Grid.Column="1"
54-
HorizontalAlignment="Left"
55-
VerticalAlignment="Top"
56-
Foreground="{DynamicResource GitHubVsToolWindowText}"
57-
Margin="0,-3,5,0"
58-
Style="{DynamicResource {x:Static vsui:VsResourceKeys.TextBlockEnvironment122PercentFontSizeStyleKey}}"
59-
Text="{Binding Title}"
60-
ToolTip="{Binding Title}"
61-
TextTrimming="CharacterEllipsis" />
6265
<ui:OcticonImage x:Name="comment_icon"
6366
Grid.Row="0"
6467
Grid.RowSpan="2"

0 commit comments

Comments
 (0)