Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Footer.cs @ 12747

Last change on this file since 12747 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 971 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Controls;
6using System.Windows;
7
8namespace 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.