Skip to content

Commit ad1800a

Browse files
committed
Added change to include blade item header as potential GetNameCore result.
1 parent e2d9e93 commit ad1800a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/BladeView/BladeItemAutomationPeer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ protected override string GetNameCore()
7373
return name;
7474
}
7575

76+
name = this.OwnerBladeItem.Header?.ToString();
77+
if (!string.IsNullOrEmpty(name))
78+
{
79+
return name;
80+
}
81+
7682
TextBlock textBlock = this.OwnerBladeItem.FindDescendant<TextBlock>();
7783
if (textBlock != null)
7884
{

0 commit comments

Comments
 (0)