开发者

DockPanel disable close button

开发者 https://www.devze.com 2023-02-25 04:42 出处:网络
I am using DockPanel suite. I need to disable the Close button of the DockPanel. I found 开发者_运维百科that:

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

精彩评论

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