开发者

WPF design-time context menu

开发者 https://www.devze.com 2022-12-10 18:09 出处:网络
I am trying to create a custom wpf control, I\'m wondering how I can add some design-time features. I\'ve googled and can\'t 开发者_运维技巧seem to get to my goal.

I am trying to create a custom wpf control, I'm wondering how I can add some design-time features. I've googled and can't 开发者_运维技巧seem to get to my goal.

So here's my simple question, how can I add an entry to the design-time context menu for my WPF usercontrol? The context menu by default has entries View Code,View XAML, etc.


You probably want to check out the WPF Designer Extensibility documentation. Specifically it sounds like you want to create a custom MenuAction.


This will help you get the context menu you require, although this applies to datagrid's still applicable; WPF DataGrid Design-time Walkthrough

0

精彩评论

暂无评论...
验证码 换一张
取 消