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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
4 deletions
-
src/Avalonia.Base/Media/GeometryDrawing.cs
-
src/Avalonia.Base/Media/PolyLineSegment.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"/>.
|
|
|
|
|
|
@ -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); |
|
|
|