We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Deprecated SfDiagram.ItemSelectedEvent in v12.1.0.46

Thread ID:





116302 May 13,2014 05:24 AM May 14,2014 11:47 PM WinRT 3
Tags: SfDiagram
Andrew Ridout
Asked On May 13, 2014 05:24 AM


I have just upgraded to v12.1.0.46 from v11.3.0.33.  Since doing so I am now getting the following error with SfDiagram:

'Syncfusion.UI.XAML.Diagram.SfDraigram' does not contain a definition for 'ItemSelectedEvent' and no extension method 'ItemSelectedEvent' accepting a first argument of type 'Syncfusion.UI.XAML.Diagram.SfDraigram' could be found (are you missing a using directive or an assembly reference?)

Can you please advise what I should use instead of ItemSelectedEvent?

I also note that your API documentation still shows ItemSelectedEvent as being available. Can this be updated?


Parthiban A [Syncfusion]
Replied On May 13, 2014 08:37 AM

Hi Andrew,

As we have moved diagram control events and commands to SfDiagram.Info from version onwards. We have marked them as obsolete API in it.  Now we have removed those obsolete API in our latest version Hence we can use diagram control events and commands from SfDiagram.Info as before.

Code Snippet:

SfDiagram diagram=new SfDiagram();

       IGraphInfo diagramInfo = diagram.Info as IGraphInfo;

       diagramInfo.ItemTappedEvent += MainPage_ItemTappedEvent;

       diagramInfo.ItemSelectedEvent += MainPage_ItemSelectedEvent;

       diagramInfo.ConnectorSourceChangedEvent += MainPage_ConnectorSourceChangedEvent;

       diagramInfo.ConnectorSourceChangedEvent += MainPage_ConnectorSourceChangedEvent;

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



Andrew Ridout
Replied On May 14, 2014 03:54 AM

Many thanks for your help.  This has solved my problem.

Parthiban A [Syncfusion]
Replied On May 14, 2014 11:47 PM

Hi Andrew,

Thanks for your update.

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




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.