-
-
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.
#2166 automatiopeer for numericupdown
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Windows.Automation; | ||
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) | ||
: base(owner) | ||
{ | ||
} | ||
protected override string GetClassNameCore() | ||
{ | ||
return "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