|
Hi Stoyan,
Could you please let us know how we can make a node template that will apply shadow effect only on Graphics(not on TextBlock)?
Code snippet for our ShapeNode is:
textOnTheRight = new MindFusion.Diagramming.Wpf.Shape( Shapes.Rectangle.Outline,// reuse the rectangular shape null,// no decorations new ElementTemplate[]// define text region { new LineTemplate(32, 19, 90, 19), new LineTemplate(90, 19, 90, 79), new LineTemplate(90, 79, 32, 79), new LineTemplate(32, 79, 32, 19) }, FillRule.EvenOdd,// doesn't matter here "TextOnTheRight"// to access the shape later using Shape.FromId );
Regards, Anshul
|