Initial Commit
This commit is contained in:
42
Common/Footer.cs
Normal file
42
Common/Footer.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a text in ChartPlotter's footer.
|
||||
/// </summary>
|
||||
public class Footer : ContentControl, IPlotterElement
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Footer"/> class.
|
||||
/// </summary>
|
||||
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; ; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user