fix for #726 use ActualWidth and ActualHeight instead DesiredSize

Closes #726