This is a migrated thread and some comments may be shown as answers.

How to get the parent Diagram of a RadDiagramShape in code?

2 Answers 69 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 07 Jun 2016, 02:11 PM

How can I get the parent Diagram of a RadDiagramShape in code?

There is a "Diagram" property but it's protected and can't be accessed.

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 07 Jun 2016, 03:21 PM
Hello Greg,

You can use ParentOfType<RadDiagram>() extension method from Telerik.WIndows.Controls.

Regards,
Petar Mladenov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Greg
Top achievements
Rank 1
answered on 07 Jun 2016, 04:17 PM
Excellent. Thank you!
Tags
Diagram
Asked by
Greg
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Greg
Top achievements
Rank 1
Share this question
or