简体   繁体   English

DevExpress TabbedView冻结焦点面板

[英]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.

相关问题 序列化DevExpress面板控件 - Serializing a DevExpress Panel Control 在RefreshDatasource之后还原DevExpress XtraGrid的焦点行 - Restore focused row of DevExpress XtraGrid after RefreshDatasource 如何设置焦点节点Devexpress TreeListControl - How to set focused node Devexpress TreeListControl 如何在单击时突出显示DevExpress gridview中的焦点行? - How to highlight focused row in DevExpress gridview on click? 在进行大量计算时如何避免 DevExpress 电子表格冻结? - How to avoid DevExpress Spreadsheet freeze while doing heavy calculations? 使用devexpress wpf在文档面板上向左或向右停靠 - make dock left or right for a document panel with devexpress wpf 使用DevExpress NavBar控件的WinForm以及如何正确更改目标面板 - WinForm with DevExpress NavBar Control and How to Change the Target Panel Correctly DevExpress XtraForm 中是否有我可以设计类似collapsePanel 的控件或面板? - Is there a Control or Panel in DevExpress XtraForm that I can design something like a collapsePanel? DevExpress SnapControl数据浏览器扩展坞面板中的哪个节点触发事件 - Which node fire event in DevExpress SnapControl Data Explorer Dock Panel 如何在devexpress网格控件中防止查找面板自动聚焦 - How to prevent auto focus of find panel in devexpress grid control
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM