Rev | Line | |
---|
[12503] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Windows.Controls;
|
---|
| 6 | using System.Windows;
|
---|
| 7 |
|
---|
| 8 | namespace Microsoft.Research.DynamicDataDisplay
|
---|
| 9 | {
|
---|
| 10 | /// <summary>
|
---|
| 11 | /// Represents a text in ChartPlotter's footer.
|
---|
| 12 | /// </summary>
|
---|
| 13 | public class Footer : ContentControl, IPlotterElement
|
---|
| 14 | {
|
---|
| 15 | /// <summary>
|
---|
| 16 | /// Initializes a new instance of the <see cref="Footer"/> class.
|
---|
| 17 | /// </summary>
|
---|
| 18 | public Footer()
|
---|
| 19 | {
|
---|
| 20 | HorizontalAlignment = HorizontalAlignment.Center;
|
---|
| 21 | Margin = new Thickness(0, 0, 0, 3);
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | void IPlotterElement.OnPlotterAttached(Plotter plotter)
|
---|
| 25 | {
|
---|
| 26 | this.plotter = plotter;
|
---|
| 27 | plotter.FooterPanel.Children.Add(this);
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | void IPlotterElement.OnPlotterDetaching(Plotter plotter)
|
---|
| 31 | {
|
---|
| 32 | plotter.FooterPanel.Children.Remove(this);
|
---|
| 33 | this.plotter = null;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | private Plotter plotter;
|
---|
| 37 | Plotter IPlotterElement.Plotter
|
---|
| 38 | {
|
---|
| 39 | get { return plotter; ; }
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.