之前写了一篇自定义ToolBarEx的文章(http://www.cnblogs.com/michael-zhangyu/archive/2008/03/19/1112903.html),没有实现DropdownButton的效果,目前实现了下拉菜单的功能,如图:

2008-7-29 .net CF自定义ToolBar(二)

     

     参考.net CFToolBar的下拉菜单,直接show contextmenu;下拉的按钮宽度12px

Popup菜单的方法:_menu.Show(this._owner, new Point(_rect.X, _rect.Bottom -1));

如此,ToolBarEx实现了.net CF ToolBar的所有功能,并且外观效果更好。

相关文章:

  • 2022-02-14
  • 2022-03-01
  • 2021-10-30
  • 2021-10-16
  • 2022-01-25
  • 2021-04-22
  • 2021-08-07
  • 2021-12-31
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
相关资源
相似解决方案