From 3fa1b3180a1fb6d165a18aceb316d27f44f7481e Mon Sep 17 00:00:00 2001 From: beto-rodriguez Date: Thu, 1 Sep 2022 13:57:35 -0500 Subject: [PATCH] fixes #199 --- src/LiveChartsCore/Kernel/ChartElement.cs | 3 +++ src/LiveChartsCore/Kernel/IChartElement.cs | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/LiveChartsCore/Kernel/ChartElement.cs b/src/LiveChartsCore/Kernel/ChartElement.cs index af1312d8b..1c442ed63 100644 --- a/src/LiveChartsCore/Kernel/ChartElement.cs +++ b/src/LiveChartsCore/Kernel/ChartElement.cs @@ -35,6 +35,9 @@ public abstract class ChartElement : IChartElement> _deletingTasks = new(); + /// + public object? Tag { get; set; } + /// public abstract void Measure(Chart chart); diff --git a/src/LiveChartsCore/Kernel/IChartElement.cs b/src/LiveChartsCore/Kernel/IChartElement.cs index 9d6da960e..48c0f987b 100644 --- a/src/LiveChartsCore/Kernel/IChartElement.cs +++ b/src/LiveChartsCore/Kernel/IChartElement.cs @@ -31,6 +31,11 @@ namespace LiveChartsCore.Kernel; public interface IChartElement where TDrawingContext : DrawingContext { + /// + /// Gets or sets the object that contains data about the control. + /// + object? Tag { get; set; } + /// /// Measures and schedule the draw of the element in the user interface. ///