GoXam for WPF v3
Spot Structure
Members 
Northwoods.GoXam Namespace : Spot Structure
A spot represents a relative point from (0,0) to (1,1) within the bounds of an element, plus an absolute offset.
Object Model
Spot StructureSpot StructureSpot Structure
Syntax
[ValueSerializer(Northwoods.GoXam.Spot/SpotValueSerializer)]
[TypeConverter(Northwoods.GoXam.Spot/SpotConverter)]
[Serializable()]
public struct Spot : System.ValueType 
Remarks

A spot can represent a particular point (such as TopLeft or new Spot(0.25, 0.25)), or a particular side (such as RightSide) or multiple sides (such as TopBottomSides), or when equal to None no particular point at all.

The X and Y values denote the fractional distance of the spot point along the dimensions of the element's width and height. Zero is at the left or the top of the element; one is at the right or the bottom of the element. The values must be between 0 and 1. Values that are NaN are reserved for special spots such as None or the spots that represent sides.

Once the point is determined by the X and Y values within a particular bounding rectangle, the OffsetX and OffsetY values are added to determine the final point. The offset values may be negative. Negative offset values when the (X,Y) are near the left and/or top may result in a point that is outside of the bounds of the element. Positive offset values when the (X,Y) are near the right and/or bottom may also result in a point that is outside of the bounds of the element.

Inheritance Hierarchy

System.Object
   System.ValueType
      Northwoods.GoXam.Spot

See Also

Reference

Spot Members
Northwoods.GoXam Namespace