Skip to content

Commit

Permalink
feat: Implement ListBoxItemAutomationPeer
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 777a9d8 commit d28a0f7
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 ListBoxItemAutomationPeer : 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 ListBoxItemAutomationPeer(global::Microsoft.UI.Xaml.Controls.ListBoxItem owner) : base(owner)
{
Expand Down
20 changes: 20 additions & 0 deletions src/Uno.UI/UI/Xaml/Automation/Peers/ListBoxItemAutomationPeer.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 ListBoxItemAutomationPeer_Partial.cpp, tag winui3/release/1.4.2
namespace Microsoft.UI.Xaml.Automation.Peers;

/// <summary>
/// Exposes the items in the Items collection of a ListBox to Microsoft UI Automation.
/// </summary>
public partial class ListBoxItemAutomationPeer : FrameworkElementAutomationPeer
{
public ListBoxItemAutomationPeer(Controls.ListBoxItem owner) : base(owner)
{

}

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

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

0 comments on commit d28a0f7

Please sign in to comment.