Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Navigation/Navigation/NavigationBase.cs @ 12503

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

#2283 added GUI and charts; fixed MCTS

File size: 742 bytes
Line 
1using System.Windows;
2using System.Windows.Media;
3
4namespace Microsoft.Research.DynamicDataDisplay.Navigation
5{
6    /// <summary>Base class for all navigation providers</summary>
7  public abstract class NavigationBase : ViewportElement2D {
8    protected NavigationBase() {
9      ManualTranslate = true;
10      ManualClip = true;
11      Loaded += NavigationBase_Loaded;
12    }
13
14    private void NavigationBase_Loaded(object sender, RoutedEventArgs e) {
15      OnLoaded(e);
16    }
17
18    protected virtual void OnLoaded(RoutedEventArgs e) { }
19
20    protected override void OnRenderCore(DrawingContext dc, RenderState state) {
21      Color color = Color.FromArgb(0, 0, 0, 0);
22      dc.DrawRectangle(new SolidColorBrush(color), null, state.Output);
23    }
24  }
25}
Note: See TracBrowser for help on using the repository browser.