Hi Kevin,
Yes there is an easy way to convert values from one measurement unit to another. The following code shows how to create and initialize a measurement unit converter class that can be used to perform this conversion:
NMeasurementUnitConverter converter = new NMeasurementUnitConverter(NResolution.ScreenResolution);
NSizeF rootSize = new NSizeF(200, 200);
NSizeF parentSize = new NSizeF(100, 100);
converter.InitializeRelativeMembers(rootSize, parentSize);
float parentPercentage = converter.ConvertX(NGraphicsUnit.Pixel, NRelativeUnit.ParentPercentage, 10);
Note that in general the conversion is defined when you specify x/y resolution, x/y parent size (used by the ParentPercentage unit) and x/y root size (used by the RootPercentageUnit). Hope this helps - let us know if you have any questions...
Best Regards,
Nevron Support Team