So I am basically creating a program where the end user is able to drag controls onto a blank canvas. These controls can have their properties adjusted by the end user via a properties window/dialog when the control is clicked. When a user selects multiple controls on the canvas, I want them to be able to adjust properties that are in common with each other. (i.e. : if this were a drawing program and the user had a square control and a circle control on their canvas, when they select the square and the circle object together, say the "line color" is something they have in common, so i want the end user to be able to set that property since they both have it. I'm wondering in the code that I use to create such an application, if there is some programming pattern or class design considerations that would help with this functionality. (Note: there also might be a case where they do have that item in common, but it is a property that should never be the same, and thus wont be settable during a mult-select scenario. (i.e.: the "name" property they might both have in common, but since i want these to be unique this property would be left out of the ability to multi-set))
Any advice or info on classes/hierarchy/pattern useage would be great. Planning on using C# as well. THANKS!
Aucun commentaire:
Enregistrer un commentaire