コード例 #1
0
 /// <summary>
 /// Positions a sprite relatively to the bottom-left corner of its parent.
 /// Values are pixels to move away from the parent.
 /// </summary>
 /// <param name="sprite"></param>
 /// <param name="pixelsFromBottom">Pixels from bottom - positive values places the sprite closer to the top</param>
 /// <param name="pixelsFromLeft">Pixels from left - positive values places the sprite closer to the right</param>
 public static void pixelsFromBottomLeft(this IPositionable sprite, int pixelsFromBottom, int pixelsFromLeft)
 {
     sprite.pixelsFromBottomLeft(pixelsFromBottom, pixelsFromLeft, UIyAnchor.Bottom, UIxAnchor.Left);
 }