搞这个右键菜单用了挺长的时间,一是网络上面资料比较少,二是里面有坑,坑就是众所周知,
c#
程序有两种窗口,一种是
Form
窗口,另一种是
wpf
窗口。网上的资料是这两种混合,开始我并没有意识到这两种有多大的差别,但是看了许多资料发现有很多自相矛盾的地方,因为这两种窗口有很多不同的地方:
- Form:contextmenustrip已经替代了contextmenu,但是contextmenu仍然可以用。
- Wpf:只能使用contextmenu
contextmenu和contextmenudtrip有以下几种区别:
【1】可以将</