Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows;
|
---|
6 |
|
---|
7 | namespace 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.