Files
DynamicDataDisplay/Backup/Charts/LegendItem.cs
2024-02-23 09:29:44 -05:00

40 lines
1.0 KiB
C#

using System.Windows.Controls;
namespace Microsoft.Research.DynamicDataDisplay
{
/// <summary>
/// <see cref="LegendItem"/> is a base class for item in legend, that represents some chart.
/// </summary>
public abstract class LegendItem : ContentControl
{
/// <summary>
/// Initializes a new instance of the <see cref="LegendItem"/> class.
/// </summary>
protected LegendItem() { }
/// <summary>
/// Initializes a new instance of the <see cref="LegendItem"/> class.
/// </summary>
/// <param name="description">The description.</param>
protected LegendItem(Description description)
{
Description = description;
}
private Description description;
/// <summary>
/// Gets or sets the description.
/// </summary>
/// <value>The description.</value>
public Description Description
{
get { return description; }
set
{
description = value;
Content = description;
}
}
}
}