Skip to content

Commit

Permalink
feat: Add ListBoxAutomationPeer
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 3a5671a commit b2f4ff2
Show file tree
Hide file tree
Showing 2 changed files with 22 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 ListBoxAutomationPeer : global::Microsoft.UI.Xaml.Automation.Peers.SelectorAutomationPeer
{
#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 ListBoxAutomationPeer(global::Microsoft.UI.Xaml.Controls.ListBox owner) : base(owner)
{
Expand Down
20 changes: 20 additions & 0 deletions src/Uno.UI/UI/Xaml/Automation/Peers/ListBoxAutomationPeer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// MUX Reference ListBoxAutomationPeer_Partial.cpp, tag winui3/release/1.4.2
namespace Microsoft.UI.Xaml.Automation.Peers;

/// <summary>
/// Exposes ListBox types to UI Automation.
/// </summary>
public partial class ListBoxAutomationPeer : SelectorAutomationPeer
{
public ListBoxAutomationPeer(Controls.ListBox owner) : base(owner)
{

}

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

protected override AutomationControlType GetAutomationControlTypeCore()
=> AutomationControlType.List;
}

0 comments on commit b2f4ff2

Please sign in to comment.