[英]DevExpress TabbedView Freeze Focused Panel
I have a TabbedView
with multiple Panels 我有一个带有多个面板的TabbedView
on each Panel I have a button for edit/save/cancel i need to freeze
all other Panels when I am editing one of them 在每个面板上,我都有一个用于编辑/保存/取消的按钮,我在编辑其中一个面板时需要freeze
所有其他面板
I have an event on Edit Button
and can read all Panels in TabbedView
and make 我在“ Edit Button
上有一个事件,可以读取TabbedView
所有面板并进行
dockPanel1.Enabled = false;
the problem is when they are on same panelContainer
like in the image 问题是当它们位于图像中的同一panelContainer
上时
i would like to freeze the other Tabs
我想冻结其他Tabs
with Enabled = false the Panel
is disabled but the user can click on Tab
, and I want to restrict him to view other panels 当Enabled = false时, Panel
被禁用,但用户可以单击Tab
,我想限制他查看其他面板
any suggestion is welcome 任何建议都欢迎
You would have to disable each control within each of the tab, this would probably be best handled on the click event of the tab. 您必须禁用每个选项卡中的每个控件,这可能最好在选项卡的click事件中进行处理。
Just spin through the tabView.controls object and set each control enabled or disabled based on whether you want them enabled or disabled. 只需旋转tabView.controls对象,然后根据要启用还是禁用它们来设置每个控件的启用或禁用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.