Group: Forum Members
Last Active: 11 Years Ago
Posts: 43,
Visits: 1
|
I need to convert NLength with MeasurementUnit ParentPercentage into NLength with Pixel unit and back. I understand more or less how I can do it but I think there is predefined way to solve this problem. How?
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Alina, In general you can do that using the NLengthConverter class which is present in the context of the control, but not publicly exposed. Anyway that transformation is defined only when the layout is completed. Can you explain why you need it - probably there is a workaround?
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 11 Years Ago
Posts: 43,
Visits: 1
|
Thanks, I have done it already. The situation is following: the user can set the ArrowLength and Orientation of the line's callout (or ArrowHeadWidthPercent and Orientation if the annotation's type is NArrowAnnotation), ArrowLength is set in ParentRercentage. Also the user can drag the annotation, so the properties are set accordingly the Mouse position. So in the second case I know the length in pixels and need to convert it into ParentPercentage. I know that I can set the ArrowLength in pixels, but I need to show value in ParentPercentage for user.
|