Thanks, I could use the visible property to hide specific elements. Would there be a performance gain if I would introduce multiple templates with and without specific objects; or would this be the same as setting the object visible property to false?
That’s hard to say. If there are enough structural differences, it might make sense to use a different template. But discarding a Part’s visual tree and copying the new template’s visual tree and re-evaluating bindings, followed by re-measuring and re-arranging the Part and maybe re-layout of the diagram, can be very expensive.
Changing opacity is faster than changing visibility, because the former just requires a re-draw, whereas the latter requires re-measuring and re-arranging the Part, and that might cause a re-layout of the diagram.