forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement
RichEditBoxAutomationPeer
- Loading branch information
1 parent
a73304c
commit 43db136
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} |