Starting from Visual Studio 2015, the extensions SDK supports showing an infobar on top of a document window: see https://msdn.microsoft.com/en-us/library/mt300796.aspx#BKMK_Infobars. Unfortunately that functionallity is not available for VS2010. As our extension also needs to support older Visual Studio versions, starting from Visual Studio 2010, is there another possible solution to show an infobar on top of a document window?
I tried to use margins, to dynamically show an info bar. But that doesn't work well. It looks like Visual Studio doesn't like the fact that I'm changing the size of the margin when I show/hide an item in the infobar margin.