This project has moved and is read-only. For the latest updates, please go here.

property manager for a model that is connected with a shape

Jan 27, 2014 at 7:37 AM

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?

Jan 27, 2014 at 8:02 AM

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).