Bernard Vander Beken
Bernard Vander Beken

Reputation: 5056

Is there a reusable TFS query picker for Windows applications?

Given a WinForms application, a user needs to select a TFS query.

I know how to get the list of queries through the API and that I could create a treeview-based form from scratch.

The TFS-Addin for Excel has a form to select a query:

enter image description here

The TeamProjectPicker can be reused in custom .NET applications, I am curious if something similar exists for the Query picker.

Version info:

Upvotes: 2

Views: 58

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30432

There is a TeamProjectPicker Class, so we can use the TeamProjectPicker directly.

But cannot find any QueryPicker related classes from Microsoft.TeamFoundation.Client Namespace.

So, seems it's not reusable, you may have to get the list of queries through the API.

See WorkItemStore.Query Method for details.

You can reference below samples:

Upvotes: 1

Related Questions