• Dev控件类似于ComBox的DropDownControl用法


      dropDownButton1.DropDownControl= CreateDXPopupMenu();

     

            private DXPopupMenu CreateDXPopupMenu()

            {

                DXPopupMenu menu = new DXPopupMenu();

                menu.Items.Add(new DXMenuItem("Item", OnItemClick));

                menu.Items.Add(new DXMenuCheckItem("CheckItem", false, null, OnItemClick));

                DXSubMenuItem subMenu = new DXSubMenuItem("SubMenu");

                subMenu.Items.Add(new DXMenuItem("SubItem", OnItemClick));

                menu.Items.Add(subMenu);

                return menu;

            }

            private void OnItemClick(object sender, EventArgs e)

            {

                DXMenuItem item = sender as DXMenuItem;

                XtraMessageBox.Show(UserLookAndFeel.Default, "OK");

            }

  • 相关阅读:
    使用jQuery对象
    jQuery插件
    使用jQuery函数
    jQuery的两把利器
    初始jQuery
    BOM——特效
    BOM的介绍
    DOM——节点操作
    miaov- 自动生成正V反V大于号V小于号V楼梯等图案
    H5 -- 本地存储计数器的值 和前端校验用户
  • 原文地址:https://www.cnblogs.com/mol1995/p/7637988.html
Copyright © 2020-2023  润新知