I am developing a Visual Studio Extension. I need to access the Source Control's History window to check what history items are selected or not.
I've tried several methods including the findWindowPane()
method and the activeWindow
object, but none of them worked. (I didn't know all the parameters for findWindowPane()
and the activeWindow
doesn't have any info about specific tool window data)
Update
So I've checked the solution on this page: Show item history windows with TFS SDK Unfortunately, when I'm trying to get the type of the history window, the result is null.
Type _dialogHistoryType;
Assembly tfsAssembly = typeof(Microsoft.TeamFoundation.VersionControl.Controls.LocalPathLinkBox).Assembly;
_dialogHistoryType = tfsAssembly.GetType("Microsoft.TeamFoundation.VersionControl.Controls.DialogHistory");
var historyWindow = package.FindToolWindow(_dialogHistoryType, 0, false);
My main goal is to get the selected history item's id from the history window during runtime.
Any suggestion, how to get the type?