【问题标题】:Remove "Add or Remove Buttons" in Rad Command Bar删除 Rad 命令栏中的“添加或删除按钮”
【发布时间】:2014-06-23 07:47:18
【问题描述】:

我用下面的代码创建了一个 Rad 命令栏:

RadCommandBar main = new RadCommandBar();
main.Dock = DockStyle.Top;
main.AutoSize = true;
main.Size = new System.Drawing.Size(874, 59);

CommandBarRowElement address = new CommandBarRowElement();
CommandBarStripElement strip = new CommandBarStripElement();
strip.FloatingForm = null;
strip.StretchHorizontally = true;
address.Strips.Add(strip);

CommandBarDropDownList addressEdit = new CommandBarDropDownList();
addressEdit.MaxSize = new System.Drawing.Size(0, 0);
addressEdit.VisibleInOverflowMenu = true;
addressEdit.StretchHorizontally = true;

main.Rows.Add(address);

parent.Controls.Add(main);

我在隐藏条形元素的“添加或删除按钮”时遇到问题。有人可以指出隐藏该菜单的正确方法吗?

【问题讨论】:

    标签: winforms telerik


    【解决方案1】:

    您可以使用以下代码:

    strip.OverflowButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
    

    【讨论】:

      【解决方案2】:

      最好将可见性设置为折叠,以便折叠整个项目。使用 Hidden 将隐藏该项目,但将保留其空间。更多信息请点击此处:Customize the overflow button

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-12-17
        • 2018-01-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多