I need to be able to set the height and width of some elements in inches and I'm trying to figure out the correct formula.
I have seen from other posts here that I can use
DeviceDisplay.MainDisplayInfo.Density in order to calculate the pixels per inch but this property returns '2' for me when trying on a 9.7 inch iPad simulator and physical device.
According to the technical specifications of this iPad model it should have a density of 264 pixels per inch (ppi).
Any idea why I get a density value of 2?
Also, the documentation states that I can assume that 160dp is an inch and 64dp is a centimeter but this doesn't seem very exact. Is there a better way for me to be able to size views to be exactly a certain number of inches/cm/mm?