Initial Commit
This commit is contained in:
45
Charts/DataSource2dContext.cs
Normal file
45
Charts/DataSource2dContext.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.Charts
|
||||
{
|
||||
// todo probably remove
|
||||
public sealed class DataSource2dContext : DependencyObject
|
||||
{
|
||||
public static DataRect GetVisibleRect(DependencyObject obj)
|
||||
{
|
||||
return (DataRect)obj.GetValue(VisibleRectProperty);
|
||||
}
|
||||
|
||||
public static void SetVisibleRect(DependencyObject obj, DataRect value)
|
||||
{
|
||||
obj.SetValue(VisibleRectProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty VisibleRectProperty = DependencyProperty.RegisterAttached(
|
||||
"VisibleRect",
|
||||
typeof(DataRect),
|
||||
typeof(DataSource2dContext),
|
||||
new FrameworkPropertyMetadata(new DataRect()));
|
||||
|
||||
public static Rect GetScreenRect(DependencyObject obj)
|
||||
{
|
||||
return (Rect)obj.GetValue(ScreenRectProperty);
|
||||
}
|
||||
|
||||
public static void SetScreenRect(DependencyObject obj, Rect value)
|
||||
{
|
||||
obj.SetValue(ScreenRectProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScreenRectProperty = DependencyProperty.RegisterAttached(
|
||||
"ScreenRect",
|
||||
typeof(Rect),
|
||||
typeof(DataSource2dContext),
|
||||
new FrameworkPropertyMetadata(new Rect()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user