Does anyone know what measurement units are used by Silverlight/WFP? For example, if I create a new button and set its height to 150, is that 150 pixels? points? millimeters?
I design all of my applications in Adobe Illustrator before proceeding to code, and although I try and set everything to the dimensions in my Illustrator file, the Silverlight application is usually larger.
MSDN’s documentation states that the
FrameworkElement.Heightproperty (for Silverlight) refers to:However, for WPF it refers to:
So, to answer your question… pixels for Silverlight, device-independent units for WPF.