Add method Canvas.GetAspectRatio().