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.
是否可以锁定 DevExpress DockLayoutManager(WPF) 的组件?我想让布局更改可选,这样用户就不会意外取消停靠组件。IsEnabled不起作用,因为它完全禁用了所有子组件。
DockLayoutManager
IsEnabled
原来你只能通过你BaseLayoutItem的Allow*属性来做到这一点。所以现在我递归遍历所有 my LayoutGroups 和 theirItems和 set AllowFloat, AllowDrag, AllowMaximize, AllowHide, AllowMove, AllowSizingto trueor false,分别。
BaseLayoutItem
Allow*
LayoutGroup
Items
AllowFloat
AllowDrag
AllowMaximize
AllowHide
AllowMove
AllowSizing
true
false