WPF container to turn all child controls to read-only
问题 I would like to have a WPF container (panel, user control, etc.) that exposes a property to turn all children to read-only if set. This should pretty much be like setting a parent control to IsEnabled=false, which also disables all children. What children and which of their properties should be considered is fixed (e.g. TextBox.ReadOnly, DataGrid.ReadOnly, ...). I have tried to create such a control, which essentially iterates all children of the visual tree (recursively) and deals with the