-
Notifications
You must be signed in to change notification settings - Fork 115
/
UIElement.cs
123 lines (110 loc) · 4.16 KB
/
UIElement.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System.Collections.Generic;
using CSHTML5.Internal;
#if MIGRATION
using System.Windows.Media;
#else
using Windows.UI.Xaml.Media;
using Windows.Foundation;
#endif
#if OPENSILVER
#if MIGRATION
using System.Windows.Automation.Peers;
#else
using Windows.UI.Xaml.Automation.Peers;
#endif
#endif
#if MIGRATION
namespace System.Windows
#else
namespace Windows.UI.Xaml
#endif
{
public abstract partial class UIElement
{
[OpenSilver.NotImplemented]
public event DragEventHandler DragEnter;
[OpenSilver.NotImplemented]
public event DragEventHandler DragLeave;
[OpenSilver.NotImplemented]
public event DragEventHandler Drop;
[OpenSilver.NotImplemented]
public event DragEventHandler DragOver;
/// <summary>
/// Gets or sets the brush used to alter the opacity of
/// regions of this object.
/// </summary>
/// <returns>
/// A brush that describes the opacity applied to this
/// object. The default is null.
/// </returns>
[OpenSilver.NotImplemented]
public Brush OpacityMask
{
get { return (Brush)GetValue(OpacityMaskProperty); }
set { SetValue(OpacityMaskProperty, value); }
}
/// <summary>
/// Identifies the OpacityMask dependency property.
/// </summary>
[OpenSilver.NotImplemented]
public static readonly DependencyProperty OpacityMaskProperty =
DependencyProperty.Register("OpacityMask",
typeof(Brush),
typeof(UIElement),
null);
/// <summary>
/// Gets or sets a value that indicates that rendered
/// content should be cached when possible.
/// </summary>
/// <returns>
/// A value that indicates that rendered content should be
/// cached when possible. If you specify a value of
/// <see cref="Media.CacheMode" />, rendering operations from
/// <see cref="UIElement.RenderTransform" /> and
/// <see cref="UIElement.Opacity" /> execute on the graphics
/// processing unit (GPU), if available. The default is null,
/// which does not enable a cached composition mode.
/// </returns>
[OpenSilver.NotImplemented]
public CacheMode CacheMode
{
get { return (CacheMode)this.GetValue(UIElement.CacheModeProperty); }
set { this.SetValue(UIElement.CacheModeProperty, (DependencyObject)value); }
}
/// <summary>Identifies the <see cref="UIElement.CacheMode" /> dependency property.</summary>
/// <returns>The identifier for the <see cref="UIElement.CacheMode" /> dependency property.</returns>
[OpenSilver.NotImplemented]
public static readonly DependencyProperty CacheModeProperty =
DependencyProperty.Register("CacheMode",
typeof(CacheMode),
typeof(UIElement),
null);
[OpenSilver.NotImplemented]
public Projection Projection
{
get { return (Projection)this.GetValue(UIElement.ProjectionProperty); }
set { this.SetValue(UIElement.ProjectionProperty, value); }
}
[OpenSilver.NotImplemented]
public static readonly DependencyProperty ProjectionProperty =
DependencyProperty.Register("Projection",
typeof(Projection),
typeof(UIElement),
null);
#if OPENSILVER
//
// Summary:
// When implemented in a derived class, returns class-specific System.Windows.Automation.Peers.AutomationPeer
// implementations for the Silverlight automation infrastructure.
//
// Returns:
// The class-specific System.Windows.Automation.Peers.AutomationPeer subclass to
// return.
[OpenSilver.NotImplemented]
protected virtual AutomationPeer OnCreateAutomationPeer()
{
return default(AutomationPeer);
}
#endif
}
}