EnableCentralPort=false when drap&drop from palettegroupbar

Hi,

When I select an image from palettegroupbar I want to disabled centralport. Moreover I want to hide pinpoint and rotationhandle. Is it possible?

Thank you.

Regards,

    Blanca

 

 

 


3 Replies

SK Senthil Kumar M Syncfusion Team November 23, 2012 07:36 AM UTC

Hi Blanca, 

Thanks for your interest in syncfusion products.

We are glad to inform you that we have achieved your requirement in the below sample and the same can be downloaded from the below link.

<Code>

[C#]

void EventSink_NodeCollectionChanged(Syncfusion.Windows.Forms.Diagram.CollectionExEventArgs evtArgs)

{

 if (evtArgs.ChangeType == Syncfusion.Windows.Forms.Diagram.CollectionExChangeType.Insert)

 {

  if (evtArgs.Element is FilledPath)

  {

   FilledPath filledPath = evtArgs.Element as FilledPath;

   filledPath.EnableCentralPort = false;

   //Hide Pinpoint and RotationHandle.

   filledPath.EditStyle.HidePinPoint = false;

   filledPath.EditStyle.HideRotationHandle = false;

  }

 }

}

</Code>

 

Here is the sample.

Sample

 

Please let us know if any concerns.

Regards,

Senthilkumar.M


BC Blanca Calderon November 26, 2012 10:41 AM UTC

Thank you!!



AA Amsath Ali M Syncfusion Team November 26, 2012 12:40 PM UTC

Hi Blanca,

 

Thanks for your update.

 

We are happy to hear that the issue has been resolved.

Please let us know if you require any further assistance on this.

 

Regards,

Amsath Ali. M


Loader.
Up arrow icon