WPF Development Time Context Menu

I am trying to create a custom wpf control, I am wondering how I can add some development time features. I am googled and can't seem to get to my goal.

So, here is my simple question: how can I add an entry to the development-time context menu for my WPF user control? In the context menu, by default there are entries View code, View XAML, etc.

+4
source share
2 answers

You probably want to check out the WPF Designer Extensibility documentation . In particular, it looks like you want to create a custom MenuAction .

+4
source

This will help you get the right context menu, although this also applies to the datagrid used; WPF DataGrid Design Walkthrough

0
source

All Articles