Meassure System
No more errors from using raw numbers dealing with time, pixels, length or weight values
Nuget |
Github
Use your prefered Length units to deal with pixel-based UI properties:
myButton.MinWith = (Pixel) 2.cm();
Pixel height = 20.px() + Children.Count * 10.mm();
if (((Pixel) button.Width) > 2.cm())
...