We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdaef47 commit 3ca0e49Copy full SHA for 3ca0e49
Microsoft.Toolkit.Uwp.UI/Shadows/AttachedShadowBase.cs
@@ -174,9 +174,12 @@ public AttachedShadowElementContext GetElementContext(FrameworkElement element)
174
/// <inheritdoc/>
175
public IEnumerable<AttachedShadowElementContext> EnumerateElementContexts()
176
{
177
- foreach (var kvp in ShadowElementContextTable)
+ if (ShadowElementContextTable != null)
178
179
- yield return kvp.Value;
+ foreach (var kvp in ShadowElementContextTable)
180
+ {
181
+ yield return kvp.Value;
182
+ }
183
}
184
185
0 commit comments