I am using DockPanel suite. I need to disable the Close button of the DockPanel. I found 开发者_运维百科that:
dockPanel1.CloseButtonVisible = false;
will remove close button. But in my dockpanel there is no property called CloseButtonVisible. So how do I remove close button?
Are you using the DevExpress components ?
If so you should look for:
myDockPanelName.Options.ShowCloseButton = False;
This method is not present on DockPanel
. It is on the DockContent
so this will work:
content1.CloseButtonVisible = false;
精彩评论