Browse Source

Merge pull request #10467 from workgroupengineering/fixes/Warnings/AVP1040

fix: Address Rule  AVP1040 Type mismatch: CLR property type differs from the value type of {type}
pull/10476/head
Max Katz 3 years ago
committed by GitHub
parent
commit
ce5f27d9bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Base/Media/GeometryDrawing.cs
  2. 3
      src/Avalonia.Base/Media/PolyLineSegment.cs

4
src/Avalonia.Base/Media/GeometryDrawing.cs

@ -27,8 +27,8 @@ namespace Avalonia.Media
/// <summary> /// <summary>
/// Defines the <see cref="Pen"/> property. /// Defines the <see cref="Pen"/> property.
/// </summary> /// </summary>
public static readonly StyledProperty<Pen?> PenProperty = public static readonly StyledProperty<IPen?> PenProperty =
AvaloniaProperty.Register<GeometryDrawing, Pen?>(nameof(Pen)); AvaloniaProperty.Register<GeometryDrawing, IPen?>(nameof(Pen));
/// <summary> /// <summary>
/// Gets or sets the <see cref="Avalonia.Media.Geometry"/> that describes the shape of this <see cref="GeometryDrawing"/>. /// Gets or sets the <see cref="Avalonia.Media.Geometry"/> that describes the shape of this <see cref="GeometryDrawing"/>.

3
src/Avalonia.Base/Media/PolyLineSegment.cs

@ -1,5 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
using Avalonia.Collections;
namespace Avalonia.Media namespace Avalonia.Media
{ {
@ -20,7 +19,7 @@ namespace Avalonia.Media
/// <value> /// <value>
/// The points. /// The points.
/// </value> /// </value>
public AvaloniaList<Point> Points public Points Points
{ {
get => GetValue(PointsProperty); get => GetValue(PointsProperty);
set => SetValue(PointsProperty, value); set => SetValue(PointsProperty, value);

Loading…
Cancel
Save