Gets or sets the starting two-dimensional coordinates of the linear gradient.
Assembly: System.Windows (in System.Windows.dll)
Dependency property identifier field: StartPointProperty
The default linear gradient is diagonal, and the default mode for the gradient coordinate system is RelativeToBoundingBox. When the mapping mode is RelativeToBoundingBox, and EndPoint are "logical points", where values between 0 and 1 are mapped against the total size of the eventual bounding box where the brush is applied . With these defaults, the of a linear gradient is the upper-left corner of the area being painted, a Point with value 0,0. Its EndPoint is the lower-right corner of the area being painted, a Point with value 1,1. The colors in the resulting gradient are interpolated and applied along vectors that parallel this diagonal axis.
The following illustration shows a diagonal gradient. A line was added to highlight the interpolation path of the gradient from the start point to the end point.
The following illustration shows the same linear gradient, but with highlighted gradient stops.
The XAML syntax for this property specifies a new Point as a string. The delimiter between the x and y values of the point can be either a comma or a space. Note that the comma usage has potential to clash with the usage of comma as the decimal point in some UI cultures. For more information, see the "XAML Attribute Syntax" section of Point. Also read Remarks in this topic regarding whether EndPoint should be given as a coordinate space point or a logical point.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.