Skip to content

Commit a3b5949

Browse files
committed
#2166 add file header
1 parent 653f761 commit a3b5949

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
using System.Windows.Automation;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
25
using System.Windows.Automation.Peers;
3-
using System.Windows.Automation.Provider;
46
using JetBrains.Annotations;
57
using MahApps.Metro.Controls;
68

79
namespace MahApps.Metro.Automation.Peers
810
{
911
public class NumericUpdDownAutomationPeer : FrameworkElementAutomationPeer
1012
{
11-
public NumericUpdDownAutomationPeer([NotNull] NumericUpDown owner)
13+
public NumericUpdDownAutomationPeer([NotNull] NumericUpDown owner)
1214
: base(owner)
1315
{
1416
}
17+
1518
protected override string GetClassNameCore()
1619
{
17-
return "NumericUpDown";
20+
return nameof(NumericUpDown);
1821
}
22+
1923
protected override AutomationControlType GetAutomationControlTypeCore()
2024
{
2125
return AutomationControlType.Edit;
2226
}
23-
2427
}
25-
26-
}
28+
}

src/MahApps.Metro/Controls/NumericUpDown.cs

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using JetBrains.Annotations;
1818
using MahApps.Metro.ValueBoxes;
1919
using MahApps.Metro.Automation.Peers;
20-
using System.Windows.Automation;
2120
using System.Windows.Automation.Peers;
2221

2322
namespace MahApps.Metro.Controls

0 commit comments

Comments
 (0)