<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to get the TFS objects used in our own UI integration</title><link>http://blogs.msdn.com/b/buckh/archive/2012/01/25/how-to-get-the-tfs-objects-used-in-our-own-ui-integration.aspx</link><description>Philip, a dev on version control, recently helped with a question on how to get the TFS objects we use in our UI.&amp;#160; I thought I’d post since others may find it useful. We recently had a request from a customer for a VS add-in that would be able to</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to get the TFS objects used in our own UI integration</title><link>http://blogs.msdn.com/b/buckh/archive/2012/01/25/how-to-get-the-tfs-objects-used-in-our-own-ui-integration.aspx#10280537</link><pubDate>Fri, 09 Mar 2012 18:38:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10280537</guid><dc:creator>Dennis Habib</dc:creator><description>&lt;p&gt;The Team Explorer should respond to changes you make to the query hierarchy but only if you make them on the same set of objects that the UI is using. &amp;nbsp;You must retrieve the same TfsTeamProjectCollection object that the TE is using and from that retrieve the WorkItemStore object, then manipulate the QueryHierarchy you retrieve from the WorkItemStore.Projects[projectname]. You should be able to retrieve the same TfsTeamProjectCollection that the Team Explorer is using from the TfsTeamProjectCollectionFactory by calling TfsTeamProjectCollectionFactory.GetTeamProjectCollection(uri). &amp;nbsp;You can also call &amp;#39;refresh&amp;#39; on the QueryHierarchy if all else fails, or call &amp;#39;RefreshTeamExplorerView&amp;#39; on the IVsTeamExplorer service.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10280537" width="1" height="1"&gt;</description></item><item><title>re: How to get the TFS objects used in our own UI integration</title><link>http://blogs.msdn.com/b/buckh/archive/2012/01/25/how-to-get-the-tfs-objects-used-in-our-own-ui-integration.aspx#10280368</link><pubDate>Fri, 09 Mar 2012 11:58:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10280368</guid><dc:creator>Mattias</dc:creator><description>&lt;p&gt;Just one question &lt;/p&gt;
&lt;p&gt;If I make changes to ,for example Team Queries, HOW can I force team explorer to do an REFRESH ? &lt;/p&gt;
&lt;p&gt;I tried refreshing in all kinds of ways, but it doesnt work, The UI is unawhare of changes made through the API until I manually refresh team explorer ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10280368" width="1" height="1"&gt;</description></item><item><title>re: How to get the TFS objects used in our own UI integration</title><link>http://blogs.msdn.com/b/buckh/archive/2012/01/25/how-to-get-the-tfs-objects-used-in-our-own-ui-integration.aspx#10264487</link><pubDate>Mon, 06 Feb 2012 17:04:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10264487</guid><dc:creator>Mattias </dc:creator><description>&lt;p&gt;Super, Just what I&amp;#39;ve been looking for...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10264487" width="1" height="1"&gt;</description></item></channel></rss>