Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Get position of ProjectTask rows
posted

Hi,

I want to dock a control to a XamGantt control. Is it possible to get the positions of each row in the left side of the XamGantt control?

Thanks
Harry 

  • 1935
    Verified Answer
    posted

    Hello Harry Preiß,

    I have been looking into your issue and I believe I have come up with a solution that can help you achieve the functionality you are looking for.

    You could use the Infragistics.Windows.Utilities class to get the elements from the visual tree of a control. I have prepared a sample application for you in which you can see the using of Utilities.GetDescendantFromType method that can return the needed visual element. In addition, GetBoundsRelativeTo method is implemented that gives the possibility to get the relative location of any element based on a parent element, in this case, the XamGantt. Please keep in mind that the first returned row is actually the row with the headers.

    Please take a look at the sample and let me know if you have any questions.

    ProjectTaskRowPositions.zip