property manager for a model that is connected with a shape

Jan 27, 2014 at 6:37 AM
Hi,

I try to create something like a editor and it is necessary to connect some data (like a (few) string(s)) with a shape. I found the DemoProgram "ModelMapping". It helped a little bit...
Now the problem:
But now I try du create a property window to handle the model properties of a selected shape.
Can someone help me?

Thanks
Coordinator
Jan 27, 2014 at 7:02 AM
Hello,

the NShape PropertyController and PropertyPresenter components can handle both, properties of the shape and properties of the shape's model object.

Just add a PropertyController and a PropertyPresenter along with two WinForms PropertyGrids to your application, link the PropertyController/-Presenter with the other NShape components and finally assign a PropertyGrid to the PropertyPresenter.PrimaryPropertyGrid property (for displaying the shape properties) and to the PropertyPresenter.SecondaryPropertyGrid property (for displaying the IModelObject properties).