diff --git a/src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs b/src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs index 91bb9e9e19c6..c1e13b6065e8 100644 --- a/src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs +++ b/src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs @@ -1,7 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. -// MUX Reference RichEditBoxAutomationPeer_Partial.cpp, tag winui3/release/1.4.2 +// MUX Reference RichEditBoxAutomationPeer_Partial.cpp, tag winui3/release/1.5-stable using System.Collections.Generic; +using Uno.UI.DirectUI; namespace Microsoft.UI.Xaml.Automation.Peers; @@ -22,11 +23,8 @@ protected override AutomationControlType GetAutomationControlTypeCore() protected override IEnumerable GetDescribedByCore() { var owner = Owner as Controls.RichEditBox; + TextBoxPlaceholderTextHelper.SetupPlaceholderTextBlockDescribedBy(owner); - //IFC_RETURN(get_Owner(spOwner.GetAddressOf())); - - //IFC_RETURN(TextBoxPlaceholderTextHelper::SetupPlaceholderTextBlockDescribedBy(spOwner)); - - //IFC_RETURN(GetAutomationPeerCollection(UIAXcp::APDescribedByProperty, returnValue)); + return GetAutomationPeerCollection(AutomationProperties.DescribedByProperty); } }