From 9bfa9e98b233af78324c83169592c663aed7b498 Mon Sep 17 00:00:00 2001 From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com> Date: Sat, 9 Mar 2024 23:26:59 +0100 Subject: [PATCH] feat: Implement `ThumbAutomationPeer` --- .../Automation/Peers/ThumbAutomationPeer.cs | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Uno.UI/UI/Xaml/Automation/Peers/ThumbAutomationPeer.cs b/src/Uno.UI/UI/Xaml/Automation/Peers/ThumbAutomationPeer.cs index 6138382023b5..c9acca9969cb 100644 --- a/src/Uno.UI/UI/Xaml/Automation/Peers/ThumbAutomationPeer.cs +++ b/src/Uno.UI/UI/Xaml/Automation/Peers/ThumbAutomationPeer.cs @@ -1,26 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. -// MUX Reference ThumbAutomationPeer_Partial.cpp - +// MUX Reference ThumbAutomationPeer_Partial.cpp, tag winui3/release/1.4.2 using Microsoft.UI.Xaml.Controls.Primitives; -namespace Microsoft.UI.Xaml.Automation.Peers +namespace Microsoft.UI.Xaml.Automation.Peers; + +/// +/// Exposes Thumb types to Microsoft UI Automation. +/// +public partial class ThumbAutomationPeer : FrameworkElementAutomationPeer { /// - /// Exposes Thumb types to Microsoft UI Automation. + /// Initializes a new instance of the ThumbAutomationPeer class. /// - public partial class ThumbAutomationPeer : FrameworkElementAutomationPeer + /// The Thumb to create a peer for. + public ThumbAutomationPeer(Thumb owner) : base(owner) { - /// - /// Initializes a new instance of the ThumbAutomationPeer class. - /// - /// The Thumb to create a peer for. - public ThumbAutomationPeer(Thumb owner) : base(owner) - { - } + } - protected override string GetClassNameCore() => nameof(Thumb); + protected override string GetClassNameCore() => nameof(Thumb); - protected override AutomationControlType GetAutomationControlTypeCore() => AutomationControlType.Thumb; - } + protected override AutomationControlType GetAutomationControlTypeCore() + => AutomationControlType.Thumb; }