public void SetObjectView(object obj) { if (!MainDescription.IsUIForm) { return; } if (propertyGrid == null) { this.propertyGrid = PropertyGridFactory.GetInstance(obj); propertyGrid.ShowReadOnlyProperties = true; control.Content = propertyGrid; } else { propertyGrid.SetObjectView(obj); } var dockableManager = this.MainFrmUI as IDockableManager; dockableManager?.ActiveThisContent(this.control); }