-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 9 additions & 7 deletions
16
src/MahApps.Metro/Automation/Peers/NumericUpdDownAutomationPeer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
using System.Windows.Automation; | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Windows.Automation.Peers; | ||
using System.Windows.Automation.Provider; | ||
using JetBrains.Annotations; | ||
using MahApps.Metro.Controls; | ||
|
||
namespace MahApps.Metro.Automation.Peers | ||
{ | ||
public class NumericUpdDownAutomationPeer : FrameworkElementAutomationPeer | ||
{ | ||
public NumericUpdDownAutomationPeer([NotNull] NumericUpDown owner) | ||
public NumericUpdDownAutomationPeer([NotNull] NumericUpDown owner) | ||
: base(owner) | ||
{ | ||
} | ||
|
||
protected override string GetClassNameCore() | ||
{ | ||
return "NumericUpDown"; | ||
return nameof(NumericUpDown); | ||
} | ||
|
||
protected override AutomationControlType GetAutomationControlTypeCore() | ||
{ | ||
return AutomationControlType.Edit; | ||
} | ||
|
||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters