icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
949 stars 251 forks source link

Custom Right Click Item on DesignItem #47

Closed khalili-mahdi closed 6 years ago

khalili-mahdi commented 6 years ago

could you help me add my own Item to DesignItem Right click menu? with event handlers for that?

jogibear9988 commented 6 years ago

look at RightClickContextMenuExtension if you do a extension like this, it will be added to the right click menu

you need to add your assembly to the designer assemblies:

        var settings = new XamlLoadSettings();
        settings.DesignerAssemblies.Add(typeof(XamlDesignContext).Assembly);
        settings.DesignerAssemblies.Add(blabla);