Width
/Height
is the requested or layout size. If you set to Auto, then the value is double.NaN
when you access the property in code behind.
ActualWidth
/ActualHeight
and RenderSize.Width
/RenderSize.Height
both return the element’s rendered size, as RenderSize is of type Size. If you want/need the actual size of the item, then use any of these attributes.