1- // Licensed to the .NET Foundation under one or more agreements.
1+ // Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44
@@ -9,33 +9,33 @@ namespace Microsoft.Toolkit.Uwp.UI
99 /// <summary>
1010 /// Helper class for attaching <see cref="AttachedShadowBase"/> shadows to <see cref="FrameworkElement"/>s.
1111 /// </summary>
12- public static class Shadows
12+ public static class Effects
1313 {
1414 /// <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.
1616 /// </summary>
1717 /// <param name="obj">The <see cref="FrameworkElement"/> the <see cref="AttachedShadowBase"/> is attached to.</param>
1818 /// <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 )
2020 {
21- return ( AttachedShadowBase ) obj . GetValue ( AttachedProperty ) ;
21+ return ( AttachedShadowBase ) obj . GetValue ( ShadowProperty ) ;
2222 }
2323
2424 /// <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.
2626 /// </summary>
2727 /// <param name="obj">The <see cref="FrameworkElement"/> to attach the shadow to.</param>
2828 /// <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 )
3030 {
31- obj . SetValue ( AttachedProperty , value ) ;
31+ obj . SetValue ( ShadowProperty , value ) ;
3232 }
3333
3434 /// <summary>
3535 /// Attached <see cref="DependencyProperty"/> for setting an <see cref="AttachedShadowBase"/> to a <see cref="FrameworkElement"/>.
3636 /// </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 ) ) ;
3939
4040 private static void OnShadowChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
4141 {
0 commit comments