Skip to content

Commit e3c6fe2

Browse files
Move common Shadow base helpers to a folder in Uwp.UI
1 parent 863e75c commit e3c6fe2

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

Microsoft.Toolkit.Uwp.UI/AttachedShadowBase.cs renamed to Microsoft.Toolkit.Uwp.UI/Shadows/AttachedShadowBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
14

2-
3-
using System;
45
using System.Numerics;
56
using System.Runtime.CompilerServices;
67
using Windows.Foundation;

Microsoft.Toolkit.Uwp.UI/AttachedShadowElementContext.cs renamed to Microsoft.Toolkit.Uwp.UI/Shadows/AttachedShadowElementContext.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// ------------------------------------------------------
2-
// Copyright (C) Microsoft. All rights reserved.
3-
// ------------------------------------------------------
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
44

55
using System;
66
using System.Collections.Generic;
@@ -18,7 +18,7 @@ public sealed class AttachedShadowElementContext
1818
private Dictionary<string, object> _resources;
1919

2020
/// <summary>
21-
/// Gets whether or not this <see cref="AttachedShadowElementContext"/> has been initialized.
21+
/// Gets a value indicating whether or not this <see cref="AttachedShadowElementContext"/> has been initialized.
2222
/// </summary>
2323
public bool IsInitialized { get; private set; }
2424

@@ -28,7 +28,7 @@ public sealed class AttachedShadowElementContext
2828
public AttachedShadowBase Parent { get; private set; }
2929

3030
/// <summary>
31-
/// Get the <see cref="FrameworkElement"/> this instance is attached to
31+
/// Gets the <see cref="FrameworkElement"/> this instance is attached to
3232
/// </summary>
3333
public FrameworkElement Element { get; private set; }
3434

@@ -43,12 +43,12 @@ public sealed class AttachedShadowElementContext
4343
public Compositor Compositor { get; private set; }
4444

4545
/// <summary>
46-
/// Get the <see cref="SpriteVisual"/> that contains the <see cref="DropShadow">shadow</see> for this instance
46+
/// Gets the <see cref="SpriteVisual"/> that contains the <see cref="DropShadow">shadow</see> for this instance
4747
/// </summary>
4848
public SpriteVisual SpriteVisual { get; private set; }
4949

5050
/// <summary>
51-
/// Get the <see cref="DropShadow"/> that is rendered on this instance's <see cref="Element"/>
51+
/// Gets the <see cref="DropShadow"/> that is rendered on this instance's <see cref="Element"/>
5252
/// </summary>
5353
public DropShadow Shadow { get; private set; }
5454

Microsoft.Toolkit.Uwp.UI/IAttachedShadow.cs renamed to Microsoft.Toolkit.Uwp.UI/Shadows/IAttachedShadow.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// ------------------------------------------------------
2-
// Copyright (C) Microsoft. All rights reserved.
3-
// ------------------------------------------------------
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
44

55
using System.Numerics;
66
using Windows.Foundation;
@@ -12,15 +12,25 @@ namespace Microsoft.Toolkit.Uwp.UI
1212
public interface IAttachedShadow
1313
{
1414
double BlurRadius { get; set; }
15+
1516
double Opacity { get; set; }
17+
1618
Vector3 Offset { get; set; }
19+
1720
Color Color { get; set; }
21+
1822
bool SupportsOnSizeChangedEvent { get; }
23+
1924
void ConnectElement(FrameworkElement element);
25+
2026
void DisconnectElement(FrameworkElement element);
27+
2128
void OnElementContextInitialized(AttachedShadowElementContext context);
29+
2230
void OnElementContextUninitialized(AttachedShadowElementContext context);
31+
2332
void OnSizeChanged(AttachedShadowElementContext context, Size newSize, Size previousSize);
33+
2434
AttachedShadowElementContext GetElementContext(FrameworkElement element);
2535
}
2636
}

0 commit comments

Comments
 (0)