Skip to content

Commit 4ea8826

Browse files
authored
Merge branch 'main' into fix/imagecropper-aspect-ratio-not-updating-on-image-load
2 parents 5b47d71 + c4d62ee commit 4ea8826

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,12 @@ public AttachedShadowElementContext GetElementContext(FrameworkElement element)
174174
/// <inheritdoc/>
175175
public IEnumerable<AttachedShadowElementContext> EnumerateElementContexts()
176176
{
177-
foreach (var kvp in ShadowElementContextTable)
177+
if (ShadowElementContextTable != null)
178178
{
179-
yield return kvp.Value;
179+
foreach (var kvp in ShadowElementContextTable)
180+
{
181+
yield return kvp.Value;
182+
}
180183
}
181184
}
182185

0 commit comments

Comments
 (0)