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 9e56083 commit 64c56d7Copy full SHA for 64c56d7
Microsoft.Toolkit.Uwp.UI/Extensions/Tree/LogicalTree.cs
@@ -567,7 +567,7 @@ public static IEnumerable<FrameworkElement> FindParents(this FrameworkElement el
567
public static UIElement? TryGetContentControl(this FrameworkElement element)
568
{
569
Type type = element.GetType();
570
- TypeInfo typeInfo = type.GetTypeInfo();
+ TypeInfo? typeInfo = type.GetTypeInfo();
571
572
while (typeInfo is not null)
573
@@ -584,7 +584,7 @@ public static IEnumerable<FrameworkElement> FindParents(this FrameworkElement el
584
}
585
586
587
- typeInfo = typeInfo.BaseType.GetTypeInfo();
+ typeInfo = typeInfo.BaseType?.GetTypeInfo();
588
589
590
return null;
0 commit comments