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

Commit 373dea5

Browse files
committed
Bind to ViewModel property.
Instead of DataContext (they're the same, but ViewModel is typed)
1 parent babe48d commit 373dea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
Margin="0,-3,5,0"
6060
Content="{Binding Title}"
6161
ToolTip="{Binding Title}"
62-
Command="{Binding DataContext.OpenPullRequest, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:PullRequestListView}}}"
62+
Command="{Binding ViewModel.OpenPullRequest, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:PullRequestListView}}}"
6363
CommandParameter="{Binding Number}"/>
6464

6565
<ui:OcticonImage x:Name="comment_icon"

0 commit comments

Comments
 (0)