Skip to content

Commit ba3c81f

Browse files
committed
Fixed TextBlock to text property in automation peer
1 parent 631f6b2 commit ba3c81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/Carousel/CarouselItemAutomationPeer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected override string GetNameCore()
120120
var textBlock = this.OwnerCarouselItem.FindDescendant<TextBlock>();
121121
if (textBlock != null)
122122
{
123-
return textBlock.Name;
123+
return textBlock.Text;
124124
}
125125

126126
name = base.GetNameCore();

0 commit comments

Comments
 (0)