1
- // Licensed to the .NET Foundation under one or more agreements.
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
@@ -9,33 +9,33 @@ namespace Microsoft.Toolkit.Uwp.UI
9
9
/// <summary>
10
10
/// Helper class for attaching <see cref="AttachedShadowBase"/> shadows to <see cref="FrameworkElement"/>s.
11
11
/// </summary>
12
- public static class Shadows
12
+ public static class Effects
13
13
{
14
14
/// <summary>
15
- /// Gets the shadow attached to a <see cref="FrameworkElement"/> by getting the value of the <see cref="AttachedProperty "/> property.
15
+ /// Gets the shadow attached to a <see cref="FrameworkElement"/> by getting the value of the <see cref="ShadowProperty "/> property.
16
16
/// </summary>
17
17
/// <param name="obj">The <see cref="FrameworkElement"/> the <see cref="AttachedShadowBase"/> is attached to.</param>
18
18
/// <returns>The <see cref="AttachedShadowBase"/> that is attached to the <paramref name="obj">FrameworkElement.</paramref></returns>
19
- public static AttachedShadowBase GetAttached ( FrameworkElement obj )
19
+ public static AttachedShadowBase GetShadow ( FrameworkElement obj )
20
20
{
21
- return ( AttachedShadowBase ) obj . GetValue ( AttachedProperty ) ;
21
+ return ( AttachedShadowBase ) obj . GetValue ( ShadowProperty ) ;
22
22
}
23
23
24
24
/// <summary>
25
- /// Attaches a shadow to an element by setting the <see cref="AttachedProperty "/> property.
25
+ /// Attaches a shadow to an element by setting the <see cref="ShadowProperty "/> property.
26
26
/// </summary>
27
27
/// <param name="obj">The <see cref="FrameworkElement"/> to attach the shadow to.</param>
28
28
/// <param name="value">The <see cref="AttachedShadowBase"/> that will be attached to the element</param>
29
- public static void SetAttached ( FrameworkElement obj , AttachedShadowBase value )
29
+ public static void SetShadow ( FrameworkElement obj , AttachedShadowBase value )
30
30
{
31
- obj . SetValue ( AttachedProperty , value ) ;
31
+ obj . SetValue ( ShadowProperty , value ) ;
32
32
}
33
33
34
34
/// <summary>
35
35
/// Attached <see cref="DependencyProperty"/> for setting an <see cref="AttachedShadowBase"/> to a <see cref="FrameworkElement"/>.
36
36
/// </summary>
37
- public static readonly DependencyProperty AttachedProperty =
38
- DependencyProperty . RegisterAttached ( "Attached " , typeof ( AttachedShadowBase ) , typeof ( Shadows ) , new PropertyMetadata ( null , OnShadowChanged ) ) ;
37
+ public static readonly DependencyProperty ShadowProperty =
38
+ DependencyProperty . RegisterAttached ( "Shadow " , typeof ( AttachedShadowBase ) , typeof ( Effects ) , new PropertyMetadata ( null , OnShadowChanged ) ) ;
39
39
40
40
private static void OnShadowChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
41
41
{
0 commit comments