/// <summary> /// Positions a sprite relatively to the center-left of its parent. /// Values are pixels to move away from the parent. /// </summary> /// <param name="sprite"></param> /// <param name="pixelsFromTop">Pixels from top - positive values places the sprite closer to the bottom</param> /// <param name="pixelsFromLeft">Pixels from left - positive values places the sprite closer to the right</param> public static void pixelsFromLeft(this IPositionable sprite, int pixelsFromTop, int pixelsFromLeft) { sprite.pixelsFromLeft(pixelsFromTop, pixelsFromLeft, UIyAnchor.Center, UIxAnchor.Left); }