Hello,
I'm currently modifying the OrgChart example to add the ability to build a hierarchy inside a team (a team member can have children team member).
To be able to know if the user is dragging a Team Member over another one I've modified the OgChartDiagram.GetShapeUnderPosition() to be able to get a list of shapes instead of the top shape :
My problem is that the method always return a single team item, never a team member.
(I also changed the inheritance of OrgTeamMemberViewModel to make it inherit from HierarchicalNodeViewModel instead of ViewModelBase..
is GetTopShapesUnderPoint() the right method to use for this ?
Thanks !
I'm currently modifying the OrgChart example to add the ability to build a hierarchy inside a team (a team member can have children team member).
To be able to know if the user is dragging a Team Member over another one I've modified the OgChartDiagram.GetShapeUnderPosition() to be able to get a list of shapes instead of the top shape :
public List<RadDiagramShape> GetShapeUnderDragPosition(){ List<IShape> ShapeList = this.ServiceLocator.GetService<IHitTestService>().GetTopShapesUnderPoint(this.currentDragPosition).ToList(); List<RadDiagramShape> RetList = new List<RadDiagramShape>(); foreach (IShape shape in ShapeList) { if (shape is RadDiagramShape) { RetList.Add((RadDiagramShape)shape); } } return RetList;}My problem is that the method always return a single team item, never a team member.
(I also changed the inheritance of OrgTeamMemberViewModel to make it inherit from HierarchicalNodeViewModel instead of ViewModelBase..
is GetTopShapesUnderPoint() the right method to use for this ?
Thanks !