Initial Commit
This commit is contained in:
39
Charts/LegendItem.cs
Normal file
39
Charts/LegendItem.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user