My apologies Pedro - I shoudl have checked more carefully before replying.
So on closer inspection, OnShapeInserted is actually hooked to an IMS event. IMS events happen after the transaction has fired, so you won't be able to find anything out about the transaction at this time.
Here's another approach.
How about overriding MergeConfigure on your domain class instead? This will get called the first time the item is added from a merge operation (such as being dragged from the toolbox).
Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT] |