Line | |
---|
1 | using System.Text;
|
---|
2 | using System.Windows;
|
---|
3 | using System.Windows.Controls;
|
---|
4 | using System.Windows.Data;
|
---|
5 | using System.Windows.Documents;
|
---|
6 | using System.Windows.Input;
|
---|
7 | using System.Windows.Media;
|
---|
8 | using System.Windows.Media.Imaging;
|
---|
9 | using System.Windows.Navigation;
|
---|
10 | using System.Windows.Shapes;
|
---|
11 | using System.Windows.Markup;
|
---|
12 |
|
---|
13 | namespace 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.