UserControl as document in Visual Studio
-
Hi I am creating an addin for visual studio. It uses WCF services, and I would like to edit the objects as documents. This is somewhat similar to what the client of the Team Foundation Server does. I have created the toolboxes I need - partialy based on this two Code Project articles: http://www.codeproject.com/csharp/cpbrowser.asp and http://www.codeproject.com/WCF/WCF\_FileTransfer\_Progress.asp For the documents I have made a ToolWindow in the same way, by setting the Floating property to false. It is close to what I want. But it has drawbacks. I can't set the document as "changed", and therefore i can't use the save button, and the undo/redo, print buttons are also disabled. What I really want is to load a UserControl as a document - this seems like simple task, but I am lost here. I looked at the VSIP SDK - it has samples that are close, but they seem bound to specific fileextensions/files. When I load from a service, I don't have any elements in the loaded solution/projects. I can't believe it is that complicated.