Visual Studio Developer Center > Visual Studio Forums > Visual Studio Extensibility > Isolated Shell: Custom Project Properties as Tool window
Ask a questionAsk a question
 

AnswerIsolated Shell: Custom Project Properties as Tool window

  • Thursday, November 05, 2009 9:51 PMSalec Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,
    For my custom project type, I'd like the "Properties" option of the project to bring up a custom tool window to modify the properties of a project.  I'm using the MPF and have read in previous posts that instead of inheriting from SettingsPage I need to instead inherit IPropertyPage and replace the Activate method.  I tried doing this but it appears a modal dialog still comes up (it's empty however).  

    Also, from within the Activate method, I'm unsure how I can go by displaying my tool window.

    Any suggestions?

    -Shaun

Answers

  • Friday, November 06, 2009 3:34 PMSalec Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I figured it out.  I did not need to inherit IPropertyPage.  Rather, I just needed to inherit SettingsPage and pass it a UserControl which contained a WPF element host.  This combined with setting the SupportsProjectDesigner property of my ProjectNode to true allowed me to host a WPF page inside of the settings page. 
    • Marked As Answer bySalec Friday, November 06, 2009 3:34 PM
    •  

All Replies

  • Friday, November 06, 2009 3:34 PMSalec Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I figured it out.  I did not need to inherit IPropertyPage.  Rather, I just needed to inherit SettingsPage and pass it a UserControl which contained a WPF element host.  This combined with setting the SupportsProjectDesigner property of my ProjectNode to true allowed me to host a WPF page inside of the settings page. 
    • Marked As Answer bySalec Friday, November 06, 2009 3:34 PM
    •