using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
namespace Microsoft.Research.DynamicDataDisplay
{
///
/// Represents a text in ChartPlotter's footer.
///
public class Footer : ContentControl, IPlotterElement
{
///
/// Initializes a new instance of the class.
///
public Footer()
{
HorizontalAlignment = HorizontalAlignment.Center;
Margin = new Thickness(0, 0, 0, 3);
}
void IPlotterElement.OnPlotterAttached(Plotter plotter)
{
this.plotter = plotter;
plotter.FooterPanel.Children.Add(this);
}
void IPlotterElement.OnPlotterDetaching(Plotter plotter)
{
plotter.FooterPanel.Children.Remove(this);
this.plotter = null;
}
private Plotter plotter;
Plotter IPlotterElement.Plotter
{
get { return plotter; ; }
}
}
}