From a3b594947b4ade3159a306c9e9aa8294d2bd9c25 Mon Sep 17 00:00:00 2001 From: punker76 Date: Sun, 28 Jul 2024 23:14:08 +0200 Subject: [PATCH] #2166 add file header --- .../Peers/NumericUpdDownAutomationPeer.cs | 16 +++++++++------- src/MahApps.Metro/Controls/NumericUpDown.cs | 1 - 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/MahApps.Metro/Automation/Peers/NumericUpdDownAutomationPeer.cs b/src/MahApps.Metro/Automation/Peers/NumericUpdDownAutomationPeer.cs index bd8810b19..98be8bf23 100644 --- a/src/MahApps.Metro/Automation/Peers/NumericUpdDownAutomationPeer.cs +++ b/src/MahApps.Metro/Automation/Peers/NumericUpdDownAutomationPeer.cs @@ -1,6 +1,8 @@ -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; @@ -8,19 +10,19 @@ 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; } - } - -} +} \ No newline at end of file diff --git a/src/MahApps.Metro/Controls/NumericUpDown.cs b/src/MahApps.Metro/Controls/NumericUpDown.cs index e3da852c0..9eb740746 100644 --- a/src/MahApps.Metro/Controls/NumericUpDown.cs +++ b/src/MahApps.Metro/Controls/NumericUpDown.cs @@ -17,7 +17,6 @@ using JetBrains.Annotations; using MahApps.Metro.ValueBoxes; using MahApps.Metro.Automation.Peers; -using System.Windows.Automation; using System.Windows.Automation.Peers; namespace MahApps.Metro.Controls