Perfect - thanks!
-k
>Hi ,
Thanks for your interest in Syncfusion products.
To change the default alpha factor of the nodes, you have to handle NodeCollectionChanging event of DocumentEventSink and use FillStyle.ColorAlphaFactor of the node in this event. Please refer to the below code snippet.
this.diagram1.Model.EventSink.NodeCollectionChanging += new CollectionExEventHandler(EventSink_NodeCollectionChanging);
void EventSink_NodeCollectionChanging(CollectionExEventArgs evtArgs)
{
if (evtArgs.Element is Rectangle)
{
Rectangle m_rect = evtArgs.Element as Rectangle;
m_rect.FillStyle.ColorAlphaFactor = 80;
}
}
Here is the working sample.
http://websamples.syncfusion.com/samples/Diagram.Windows/F76151/main.htmPlease let me know if this helps.
Thanks,
Nagaraj