Skip to content

Commit

Permalink
fixes #199
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Sep 1, 2022
1 parent 48c633e commit 3fa1b31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LiveChartsCore/Kernel/ChartElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public abstract class ChartElement<TDrawingContext> : IChartElement<TDrawingCont
{
private readonly List<IPaint<TDrawingContext>> _deletingTasks = new();

/// <inheritdoc cref="IChartElement{TDrawingContext}.Tag" />
public object? Tag { get; set; }

/// <inheritdoc cref="IChartElement{TDrawingContext}.Measure(Chart{TDrawingContext})" />
public abstract void Measure(Chart<TDrawingContext> chart);

Expand Down
5 changes: 5 additions & 0 deletions src/LiveChartsCore/Kernel/IChartElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ namespace LiveChartsCore.Kernel;
public interface IChartElement<TDrawingContext>
where TDrawingContext : DrawingContext
{
/// <summary>
/// Gets or sets the object that contains data about the control.
/// </summary>
object? Tag { get; set; }

/// <summary>
/// Measures and schedule the draw of the element in the user interface.
/// </summary>
Expand Down

0 comments on commit 3fa1b31

Please sign in to comment.