locked
Question about tracking 'properties window' change RRS feed

  • Question

  • 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.

    Wednesday, October 14, 2009 3:21 AM

Answers

  • 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

    • Marked as answer by M.Lee Friday, October 16, 2009 3:11 AM
    Thursday, October 15, 2009 7:31 AM