Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将自定义行为添加到 TExpander。基本上我想要实现的是以下内容:我的表单上有多个 TExpanders。当用户展开其中一个 TExpanders 时,应最小化所有其他 TExpanders。
最简单的方法是处理 TExpander 的 OnResize 事件,然后在该事件中检查每个其他 TExpander 面板的 IsExpanded 属性并将它们设置为 False。