Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Header.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: 954 bytes
RevLine 
[12503]1using System.Text;
2using System.Windows;
3using System.Windows.Controls;
4using System.Windows.Data;
5using System.Windows.Documents;
6using System.Windows.Input;
7using System.Windows.Media;
8using System.Windows.Media.Imaging;
9using System.Windows.Navigation;
10using System.Windows.Shapes;
11using System.Windows.Markup;
12
13namespace Microsoft.Research.DynamicDataDisplay
14{
15  public class Header : ContentControl, IPlotterElement
16  {
17    public Header()
18    {
19      FontSize = 18;
20      HorizontalAlignment = HorizontalAlignment.Center;
21      Margin = new Thickness(0, 0, 0, 3);
22    }
23
24    private Plotter plotter;
25    public Plotter Plotter
26    {
27      get { return plotter; }
28    }
29   
30    public void OnPlotterAttached(Plotter plotter)
31    {
32      this.plotter = plotter;
33      plotter.HeaderPanel.Children.Add(this);
34    }
35
36    public void OnPlotterDetaching(Plotter plotter)
37    {
38      this.plotter = null;
39      plotter.HeaderPanel.Children.Remove(this);
40    }
41  }
42}
Note: See TracBrowser for help on using the repository browser.