请问DEV中的layoutcontrol的CustomizationForm如何隐藏
现在想在保留编辑状态的同时隐藏掉这个窗体,这个要如何解决呢,求大神指点好像编辑就是打开了啊
你看下他的demo 有好多例子,看看其中是否有你要的效果,然后看看demo中的代码 阳光海岸 发表于 2015-1-28 18:56
好像编辑就是打开了啊
你看下他的demo 有好多例子,看看其中是否有你要的效果,然后看看demo中的代码 ...
Demo中的都看过了,都是有这个的。。还有右键菜单好像也没法自由的修改 在主程序中或类中调用 DisableXtraLayoutCustomizationMenu(me)即可在运行时不显示该窗口。
''' <summary>
''' 禁用窗体内所有LayoutControl的右键菜单功能
''' </summary>
''' <param name="control">使用窗体对象 Me </param>
Public Sub DisableXtraLayoutCustomizationMenu(ByVal control As Control)
For Each con As Control In control.Controls
If (con.Controls.Count > 0) Then
DisableXtraLayoutCustomizationMenu(con)
End If
If TypeOf (con) Is DevExpress.XtraLayout.LayoutControl Then
Dim a As DevExpress.XtraLayout.LayoutControl = con
a.AllowCustomizationMenu = False
End If
Next
End Sub
页:
[1]