Hi Stoyan,
Thanks! It works but raises a couple of new issues though.
1)The first table node looks good. But after adding the second node, the application saves the diagram (its previous state) for Undo/Redo system:
diagram.SaveToXml(xmlDoc);
And there is an exception:
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in PresentationCore.dll
Additional information: Type 'System.Windows.Media.Effects.DropShadowEffect' in Assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.
The question is how to serialize the diagram if we use DropShadowEffect class which is not serializable?
2)After applying the shadow the table node looks smoothed (lines/text). UseLayoutRounding partially solves the problem but lines still a little fuzzy. I remember that corrected a similar issue by applying an effect to one of the layers, say to a border, instead of an entire object. But here I can not do so.
Thanks,
-Kostya