WPF provides four different units of measures:
<!-- px: is the default device-independent unit (1/96th inch per unit) in: is inches; 1in = 96px cm: is centimeters; 1cm = (96/2.54) px pt: is points; 1pt = (96/72) px --> <Window x:Class="LineInDefaultSystem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Line in Default System" Height="300" Width="300"> <Canvas Height="300" Width="300"> <Line X1="0.5in" Y1="2.0cm" X2="150" Y2="80pt" Stroke="Blue" StrokeThickness="0.1cm" /> </Canvas> </Window>