public static SizeDimension ToSizeDimension(Plane plane) { return plane == Plane.Horizontal ? SizeDimension.Width : SizeDimension.Height; }