Initial Commit

This commit is contained in:
2024-02-23 00:46:06 -05:00
commit 2bbedc0178
470 changed files with 46035 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace Microsoft.Research.DynamicDataDisplay.Charts
{
public static class BackgroundRenderer
{
public static readonly RoutedEvent RenderingFinished = EventManager.RegisterRoutedEvent(
"RenderingFinished",
RoutingStrategy.Bubble,
typeof(RoutedEventHandler),
typeof(BackgroundRenderer));
public static void RaiseRenderingFinished(FrameworkElement eventSource)
{
eventSource.RaiseEvent(new RoutedEventArgs(RenderingFinished));
}
public static readonly RoutedEvent UpdateRequested = EventManager.RegisterRoutedEvent(
"UpdateRequested",
RoutingStrategy.Bubble,
typeof(RoutedEventHandler),
typeof(BackgroundRenderer));
public static void RaiseUpdateRequested(FrameworkElement eventSource)
{
eventSource.RaiseEvent(new RoutedEventArgs(UpdateRequested));
}
#region UsesBackgroundRendering
public static bool GetUsesBackgroundRendering(DependencyObject obj)
{
return (bool)obj.GetValue(UsesBackgroundRenderingProperty);
}
public static void SetUsesBackgroundRendering(DependencyObject obj, bool value)
{
obj.SetValue(UsesBackgroundRenderingProperty, value);
}
public static readonly DependencyProperty UsesBackgroundRenderingProperty = DependencyProperty.RegisterAttached(
"UsesBackgroundRendering",
typeof(bool),
typeof(BackgroundRenderer),
new FrameworkPropertyMetadata(false));
#endregion // end of UsesBackgroundRendering
}
}