Skip to content

Commit

Permalink
feat: Implement ThumbAutomationPeer
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 6a88f87 commit 9bfa9e9
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/Uno.UI/UI/Xaml/Automation/Peers/ThumbAutomationPeer.cs
Original file line number Diff line number Diff line change
@@ -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;

/// <summary>
/// Exposes Thumb types to Microsoft UI Automation.
/// </summary>
public partial class ThumbAutomationPeer : FrameworkElementAutomationPeer
{
/// <summary>
/// Exposes Thumb types to Microsoft UI Automation.
/// Initializes a new instance of the ThumbAutomationPeer class.
/// </summary>
public partial class ThumbAutomationPeer : FrameworkElementAutomationPeer
/// <param name="owner">The Thumb to create a peer for.</param>
public ThumbAutomationPeer(Thumb owner) : base(owner)
{
/// <summary>
/// Initializes a new instance of the ThumbAutomationPeer class.
/// </summary>
/// <param name="owner">The Thumb to create a peer for.</param>
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;
}

0 comments on commit 9bfa9e9

Please sign in to comment.