Clarify the CenterX and CenterY properties in Avalonia.Media.RotateTransform (#19741)
* Clarify the Center properties in RotateTransform
From the property's description, it isn't obvious how the CenterX and CenterY property works. I assumed 0 would be the left edge but it's actually the center of the visual.
* Add documentation crefs in RotateTransform
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
/// Initializes a new instance of the <see cref="RotateTransform"/> class.
/// Initializes a new instance of the <see cref="RotateTransform"/> class.
/// </summary>
/// </summary>
/// <param name="angle">The angle, in degrees.</param>
/// <param name="angle">The angle, in degrees.</param>
/// <param name="centerX">The x-coordinate of the center point for the rotation.</param>
/// <param name="centerX">The x-coordinate of the center point for the rotation with 0 being the <see cref="Visual.RenderTransformOrigin"/> point (center by default).</param>
/// <param name="centerY">The y-coordinate of the center point for the rotation.</param>
/// <param name="centerY">The y-coordinate of the center point for the rotation with 0 being the <see cref="Visual.RenderTransformOrigin"/> point (center by default).</param>
/// Gets or sets the x-coordinate of the rotation center point. The default is 0.
/// Gets or sets the x-coordinate of the rotation center point. The default is 0 which is the <see cref="Visual.RenderTransformOrigin"/> point (center by default).
/// </summary>
/// </summary>
publicdoubleCenterX
publicdoubleCenterX
{
{
@ -78,7 +78,7 @@ namespace Avalonia.Media
}
}
/// <summary>
/// <summary>
/// Gets or sets the y-coordinate of the rotation center point. The default is 0.
/// Gets or sets the y-coordinate of the rotation center point. The default is 0 which is the <see cref="Visual.RenderTransformOrigin"/> point (center by default).