Skip to content

Commit

Permalink
feat: Implement RichEditBoxAutomationPeer
Browse files Browse the repository at this point in the history
  • Loading branch information
morning4coffe-dev authored and MartinZikmund committed Jun 17, 2024
1 parent a73304c commit 43db136
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#pragma warning disable 114 // new keyword hiding
namespace Microsoft.UI.Xaml.Automation.Peers
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial class RichEditBoxAutomationPeer : global::Microsoft.UI.Xaml.Automation.Peers.FrameworkElementAutomationPeer
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public RichEditBoxAutomationPeer(global::Microsoft.UI.Xaml.Controls.RichEditBox owner) : base(owner)
{
Expand Down
32 changes: 32 additions & 0 deletions src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// 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
using System.Collections.Generic;

namespace Microsoft.UI.Xaml.Automation.Peers;

/// <summary>
/// Exposes RichEditBox types to Microsoft UI Automation.
/// </summary>
public partial class RichEditBoxAutomationPeer : FrameworkElementAutomationPeer
{
public RichEditBoxAutomationPeer(Controls.RichEditBox owner) : base(owner)
{
}

protected override string GetClassNameCore() => nameof(Controls.RichEditBox);

protected override AutomationControlType GetAutomationControlTypeCore()
=> AutomationControlType.Edit;

protected override IEnumerable<AutomationPeer> GetDescribedByCore()
{
var owner = Owner as Controls.RichEditBox;

//IFC_RETURN(get_Owner(spOwner.GetAddressOf()));

//IFC_RETURN(TextBoxPlaceholderTextHelper::SetupPlaceholderTextBlockDescribedBy(spOwner));

//IFC_RETURN(GetAutomationPeerCollection(UIAXcp::APDescribedByProperty, returnValue));
}
}

0 comments on commit 43db136

Please sign in to comment.