开发者

DockPanel disable close button

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜