Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/DataSource2dContext.cs @ 13072

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

#2283 added GUI and charts; fixed MCTS

File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6
7namespace Microsoft.Research.DynamicDataDisplay.Charts
8{
9  // todo probably remove
10  public sealed class DataSource2dContext : DependencyObject
11  {
12    public static DataRect GetVisibleRect(DependencyObject obj)
13    {
14      return (DataRect)obj.GetValue(VisibleRectProperty);
15    }
16
17    public static void SetVisibleRect(DependencyObject obj, DataRect value)
18    {
19      obj.SetValue(VisibleRectProperty, value);
20    }
21
22    public static readonly DependencyProperty VisibleRectProperty = DependencyProperty.RegisterAttached(
23      "VisibleRect",
24      typeof(DataRect),
25      typeof(DataSource2dContext),
26      new FrameworkPropertyMetadata(new DataRect()));
27
28    public static Rect GetScreenRect(DependencyObject obj)
29    {
30      return (Rect)obj.GetValue(ScreenRectProperty);
31    }
32
33    public static void SetScreenRect(DependencyObject obj, Rect value)
34    {
35      obj.SetValue(ScreenRectProperty, value);
36    }
37
38    public static readonly DependencyProperty ScreenRectProperty = DependencyProperty.RegisterAttached(
39      "ScreenRect",
40      typeof(Rect),
41      typeof(DataSource2dContext),
42      new FrameworkPropertyMetadata(new Rect()));
43  }
44}
45
Note: See TracBrowser for help on using the repository browser.