forked from fifonik/FFBitrateViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtilities.cs
36 lines (25 loc) · 1.14 KB
/
Utilities.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Windows;
namespace Utilities
{
public class DragDropHighlighter
{
public static readonly DependencyProperty IsDroppingAboveProperty = DependencyProperty.RegisterAttached("IsDroppingAbove", typeof(bool), typeof(DragDropHighlighter), new UIPropertyMetadata(false));
public static readonly DependencyProperty IsDroppingBelowProperty = DependencyProperty.RegisterAttached("IsDroppingBelow", typeof(bool), typeof(DragDropHighlighter), new UIPropertyMetadata(false));
public static bool GetIsDroppingAbove(DependencyObject source)
{
return (bool)source.GetValue(IsDroppingAboveProperty);
}
public static void SetIsDroppingAbove(DependencyObject target, bool value)
{
target.SetValue(IsDroppingAboveProperty, value);
}
public static bool GetIsDroppingBelow(DependencyObject source)
{
return (bool)source.GetValue(IsDroppingBelowProperty);
}
public static void SetIsDroppingBelow(DependencyObject target, bool value)
{
target.SetValue(IsDroppingBelowProperty, value);
}
}
}