diff --git a/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml b/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml
index 1a3f97dd83..b534d8903b 100644
--- a/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml
+++ b/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml
@@ -2,18 +2,28 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GitHub.VisualStudio.UI.Controls"
+ Name="root"
MinWidth="16" MinHeight="16">
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml.cs b/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml.cs
index 753118a14f..b1629a71a4 100644
--- a/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml.cs
+++ b/src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml.cs
@@ -1,16 +1,24 @@
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Input;
using GitHub.Models;
namespace GitHub.VisualStudio.UI.Controls
{
- public partial class AccountAvatar : UserControl
+ public partial class AccountAvatar : UserControl, ICommandSource
{
public static readonly DependencyProperty AccountProperty =
DependencyProperty.Register(
nameof(Account),
typeof(IAccount),
typeof(AccountAvatar));
+ public static readonly DependencyProperty CommandProperty =
+ ButtonBase.CommandProperty.AddOwner(typeof(AccountAvatar));
+ public static readonly DependencyProperty CommandParameterProperty =
+ ButtonBase.CommandParameterProperty.AddOwner(typeof(AccountAvatar));
+ public static readonly DependencyProperty CommandTargetProperty =
+ ButtonBase.CommandTargetProperty.AddOwner(typeof(AccountAvatar));
public AccountAvatar()
{
@@ -22,5 +30,23 @@ public IAccount Account
get { return (IAccount)GetValue(AccountProperty); }
set { SetValue(AccountProperty, value); }
}
+
+ public ICommand Command
+ {
+ get { return (ICommand)GetValue(CommandProperty); }
+ set { SetValue(CommandProperty, value); }
+ }
+
+ public object CommandParameter
+ {
+ get { return GetValue(CommandParameterProperty); }
+ set { SetValue(CommandParameterProperty, value); }
+ }
+
+ public IInputElement CommandTarget
+ {
+ get { return (IInputElement)GetValue(CommandTargetProperty); }
+ set { SetValue(CommandTargetProperty, value); }
+ }
}
}
diff --git a/src/GitHub.VisualStudio/Views/GitHubPane/PullRequestReviewSummaryView.xaml b/src/GitHub.VisualStudio/Views/GitHubPane/PullRequestReviewSummaryView.xaml
index f3805f77fb..80e4b85d52 100644
--- a/src/GitHub.VisualStudio/Views/GitHubPane/PullRequestReviewSummaryView.xaml
+++ b/src/GitHub.VisualStudio/Views/GitHubPane/PullRequestReviewSummaryView.xaml
@@ -57,7 +57,13 @@
-
+