You can access the constructor view to do something like this.
var designerView = myDesigner.Context.Services.GetService<DesignerView>();
Then set readonly mode.
designerView.IsReadOnly = true;
It will also do a readonly property scan - not sure if this is what you need or not.
source share