Skip to content

Commit

Permalink
chore: Adjust TimePicker APs
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 ef52c88 commit 6a88f87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// MUX Reference ToggleMenuFlyoutItemAutomationPeer_Partial.cpp, tag winui3/release/1.4.2
using Uno.UI.Helpers.WinUI;
using Microsoft.UI.Xaml.Controls;

Expand All @@ -13,7 +16,8 @@ public TimePickerAutomationPeer(TimePicker owner) : base(owner)

protected override string GetClassNameCore() => nameof(TimePicker);

protected override AutomationControlType GetAutomationControlTypeCore() => AutomationControlType.Group;
protected override AutomationControlType GetAutomationControlTypeCore()
=> AutomationControlType.Group;

protected override string GetNameCore()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

// MUX Reference TimePickerFlyoutPresenterAutomationPeer_Partial.cpp, tag winui3/release/1.4.2
using Uno.UI.Helpers.WinUI;
using Microsoft.UI.Xaml.Controls;

Expand All @@ -17,9 +17,11 @@ internal TimePickerFlyoutPresenterAutomationPeer(TimePickerFlyoutPresenter owner
{
}

protected override AutomationControlType GetAutomationControlTypeCore() => AutomationControlType.Pane;
protected override AutomationControlType GetAutomationControlTypeCore()
=> AutomationControlType.Pane;

protected override string GetClassNameCore() => nameof(TimePickerFlyoutPresenter);

protected override string GetNameCore() => ResourceAccessor.GetLocalizedStringResource(UIA_AP_TIMEPICKER_NAME);
protected override string GetNameCore()
=> ResourceAccessor.GetLocalizedStringResource(UIA_AP_TIMEPICKER_NAME);
}

0 comments on commit 6a88f87

Please sign in to comment.