|
12 | 12 | </Base> |
13 | 13 | <Interfaces /> |
14 | 14 | <Docs> |
| 15 | + <summary>Represents a color and position within a gradient.</summary> |
| 16 | + <remarks>A <see cref="GradientStop" /> is used to specify colors at specific positions in a <see cref="LinearGradientBrush" /> or <see cref="RadialGradientBrush" />. The gradient is calculated by interpolating between the colors at their specified offsets.</remarks> |
15 | 17 | </Docs> |
16 | 18 | <Members> |
17 | 19 | <Member MemberName=".ctor"> |
|
25 | 27 | </AssemblyInfo> |
26 | 28 | <Parameters /> |
27 | 29 | <Docs> |
| 30 | + <summary>Initializes a new instance of the <see cref="GradientStop" /> class.</summary> |
| 31 | + <remarks>Creates a gradient stop with default values.</remarks> |
28 | 32 | </Docs> |
29 | 33 | </Member> |
30 | 34 | <Member MemberName=".ctor"> |
|
42 | 46 | <Parameter Name="offset" Type="System.Single" /> |
43 | 47 | </Parameters> |
44 | 48 | <Docs> |
45 | | - <param name="color">To be added.</param> |
46 | | - <param name="offset">To be added.</param> |
| 49 | + <param name="color">The color of the gradient stop.</param> |
| 50 | + <param name="offset">The position of the gradient stop within the gradient, ranging from 0.0 (start) to 1.0 (end).</param> |
| 51 | + <summary>Initializes a new instance of the <see cref="GradientStop" /> class with the specified color and offset.</summary> |
| 52 | + <remarks>The gradient stop can be added to a <see cref="GradientStopCollection" /> to define color transitions in a gradient brush.</remarks> |
47 | 53 | </Docs> |
48 | 54 | </Member> |
49 | 55 | <Member MemberName="Color"> |
|
60 | 66 | <ReturnType>Microsoft.Maui.Graphics.Color</ReturnType> |
61 | 67 | </ReturnValue> |
62 | 68 | <Docs> |
| 69 | + <summary>Gets or sets the color of the gradient stop. This is a bindable property.</summary> |
| 70 | + <value>A <see cref="Color" /> that represents the color at this gradient stop.</value> |
| 71 | + <remarks>This property defines the color that will be displayed at the position specified by the <see cref="Offset" /> property in the gradient.</remarks> |
63 | 72 | </Docs> |
64 | 73 | </Member> |
65 | 74 | <Member MemberName="ColorProperty"> |
|
76 | 85 | <ReturnType>Microsoft.Maui.Controls.BindableProperty</ReturnType> |
77 | 86 | </ReturnValue> |
78 | 87 | <Docs> |
| 88 | + <summary>Identifies the <see cref="Color" /> bindable property.</summary> |
79 | 89 | </Docs> |
80 | 90 | </Member> |
81 | 91 | <Member MemberName="Equals"> |
|
95 | 105 | <Parameter Name="obj" Type="System.Object" /> |
96 | 106 | </Parameters> |
97 | 107 | <Docs> |
98 | | - <param name="obj">To be added.</param> |
| 108 | + <param name="obj">The object to compare with the current instance.</param> |
| 109 | + <summary>Determines whether the specified object is equal to the current <see cref="GradientStop" />.</summary> |
| 110 | + <returns><see langword="true" /> if the specified object is a <see cref="GradientStop" /> with the same <see cref="Color" /> and <see cref="Offset" />; otherwise, <see langword="false" />.</returns> |
| 111 | + <remarks>Two gradient stops are considered equal if their colors are equal and their offsets are within 0.00001 of each other.</remarks> |
99 | 112 | </Docs> |
100 | 113 | </Member> |
101 | 114 | <Member MemberName="GetHashCode"> |
|
113 | 126 | </ReturnValue> |
114 | 127 | <Parameters /> |
115 | 128 | <Docs> |
| 129 | + <summary>Returns the hash code for this instance.</summary> |
| 130 | + <returns>A 32-bit signed integer hash code.</returns> |
116 | 131 | </Docs> |
117 | 132 | </Member> |
118 | 133 | <Member MemberName="Offset"> |
|
129 | 144 | <ReturnType>System.Single</ReturnType> |
130 | 145 | </ReturnValue> |
131 | 146 | <Docs> |
| 147 | + <summary>Gets or sets the position of the gradient stop within the gradient. This is a bindable property.</summary> |
| 148 | + <value>A <see langword="float" /> value between 0.0 and 1.0 that represents the relative position of the gradient stop. The default value is 0.0.</value> |
| 149 | + <remarks> |
| 150 | + <para>The <see cref="Offset" /> property specifies where the associated <see cref="Color" /> appears in the gradient. A value of 0.0 represents the start of the gradient, while 1.0 represents the end. Values between 0.0 and 1.0 position the color proportionally along the gradient path.</para> |
| 151 | + <para>For a <see cref="LinearGradientBrush" />, the gradient path runs from the <see cref="LinearGradientBrush.StartPoint" /> to the <see cref="LinearGradientBrush.EndPoint" />. For a <see cref="RadialGradientBrush" />, the gradient radiates from the center to the outer edge defined by the <see cref="RadialGradientBrush.Radius" />.</para> |
| 152 | + <para>Multiple gradient stops at different offsets create smooth color transitions. Gradient stops do not need to be added in order of their offset values, as they will be automatically sorted during rendering.</para> |
| 153 | + </remarks> |
132 | 154 | </Docs> |
133 | 155 | </Member> |
134 | 156 | <Member MemberName="OffsetProperty"> |
|
145 | 167 | <ReturnType>Microsoft.Maui.Controls.BindableProperty</ReturnType> |
146 | 168 | </ReturnValue> |
147 | 169 | <Docs> |
| 170 | + <summary>Identifies the <see cref="Offset" /> bindable property.</summary> |
148 | 171 | </Docs> |
149 | 172 | </Member> |
150 | 173 | </Members> |
|
0 commit comments