Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > Question about tracking 'properties window' change
 

Question about tracking 'properties window' change

I created a VS shell isolated project and a package, now what I did is

(1) I defined a custom editor (edit some graphic objects)
(2) The VS 'properties window' can track the object selected in the editor, and show their properties correctly.

Here is the question:
The combo box of 'properties window' stores a list of selectable objects, when I change the combo selected index(select another object), how can I track that change so I can get the selected object focused?
Just like the behavior between VS forms designer and the 'properties window'

Thanks.

cristiano_leeman  Wednesday, October 14, 2009 3:21 AM

Hello,
Is your selected object a user control or some other things?
When you select an item in the object list in the property window, this will trigger a call to  SelectObjects to inform the enviroment. For more information you could reference Properties Window Object List. So I think think the focuse of selected object is done by the environment not us.

And this link illustrate clearly on the VS selection, Architecture.

Hope this could help!

Thanks

Chao

Chao Kuo  Thursday, October 15, 2009 7:31 AM

Hello,
Is your selected object a user control or some other things?
When you select an item in the object list in the property window, this will trigger a call to  SelectObjects to inform the enviroment. For more information you could reference Properties Window Object List. So I think think the focuse of selected object is done by the environment not us.

And this link illustrate clearly on the VS selection, Architecture.

Hope this could help!

Thanks

Chao

Chao Kuo  Thursday, October 15, 2009 7:31 AM

You can use google to search for other answers

Custom Search

More Threads

• Re: Wrong reference usage in Microsoft.VisualStudio.TeamFoundation.Client (version 9.0.0.0)
• Access-Poll Undo Manager from within packages
• CheckPackageSignature failed; invalid Package Load for RecipeManagerPackage and Microsoft.VisualStudio.Web.Application.WAPackage
• Add-In : Get Type from EnvDTE.CodeProperty
• VSSDK Assist October 2007 CTP
• Is it available to modify in language syntax
• Opening mscorlib sources in editor
• Is there a way to get the parent node of a selected item in Solution Explorer window?
• View.URL command in Visual Studio 2005
• C# Language service in isolated shell