Skip to content

Commit

Permalink
fix xml warning from skiasharp view
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Jan 6, 2025
1 parent 69c2560 commit cd0d0c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public virtual void Draw(SkiaSharpDrawingContext context) =>
public abstract void OnDraw(SkiaSharpDrawingContext context, SKPaint paint);
}

/// <summary>
/// Obsolete.
/// </summary>
[Obsolete($"Renamed to {nameof(DrawnGeometry)}")]
public abstract class Geometry : DrawnGeometry, IDrawnElement<SkiaSharpDrawingContext>
{
Expand All @@ -59,8 +62,14 @@ public virtual void Draw(SkiaSharpDrawingContext context) =>
[Obsolete($"Use the {nameof(Draw)} method instead.")]
public abstract void OnDraw(SkiaSharpDrawingContext context, SKPaint paint);

/// <inheritdoc cref="DrawnGeometry.Measure()" />
public override LvcSize Measure() =>
new LvcSize(0, 0);
new(0, 0);

/// <summary>
/// Legacy method, will be removed in future versions.
/// </summary>
/// <param name="paintTasks"></param>
/// <returns></returns>
protected virtual LvcSize OnMeasure(Paint paintTasks) => Measure();
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static class VisualElementsExtensions
/// <summary>
/// Creates a relative panel control from a given sketch.
/// </summary>
[Obsolete("Visual elements changed, please check docs.")]
public static RelativePanel<RectangleGeometry> AsDrawnControl(
this Sketch sketch, int baseZIndex = 10050)
{
Expand Down

0 comments on commit cd0d0c2

Please sign in to comment.