none
Extending XAML/WPF Designer in VS2010? RRS feed

  • Question

  • Hi,

    i'm trying to create an addin for Visual Studio 2010's XAML Designer / WPF Designer.

    I already accomplished to extend the XAML Editor with my Addin, but the goal is to add it to the XAML Designer right-click menu and get a reference to a selected wpf control element to readout its properties and edit them.

    I figured out you need the guid and id of the desired menu to add your addin to this menu and searched online for a long time how to get the guid and id for the designer, unfortunately without any success.

    Does anyone have an idea how i can accomplish my purpose?

    Thank you in advance for your reply.

    Friday, November 2, 2012 11:20 AM

All replies

  • iirc that menu is not a shell provided menu for reasons that I can't immediately recall. This means it can't be extended.

    Ryan

    Friday, November 2, 2012 5:44 PM
    Moderator
  • Thanks for your awnser.

    As it isn't possible to extend this menu, is there an other way to get a reference to a selected(!) wpf control element and its properties?

    One solution might be parsing the xaml editor's code and get the item related to the current cursor position. But is there a better/easier way to do it?

    Daniel

    Monday, November 5, 2012 12:55 PM