/Source code/Theme/Controls/ApplicationBar/Automation/ApplicationBarAutomationPeer.cs
# · C# · 25 lines · 22 code · 3 blank · 0 comment · 2 complexity · 927d3b1d34853533c609b27e25fea57d MD5 · raw file
- using System.Diagnostics.Contracts;
- using System.Windows.Automation.Peers;
-
- namespace Elysium.Theme.Controls.Automation
- {
- public class ApplicationBarAutomationPeer : FrameworkElementAutomationPeer
- {
- public ApplicationBarAutomationPeer(ApplicationBar owner)
- : base(owner)
- {
- }
-
- protected override string GetClassNameCore()
- {
- Contract.Ensures(Contract.Result<string>() == "ApplicationBar");
- return "ApplicationBar";
- }
-
- protected override AutomationControlType GetAutomationControlTypeCore()
- {
- Contract.Ensures(Contract.Result<AutomationControlType>() == AutomationControlType.Menu);
- return AutomationControlType.Menu;
- }
- }
- } ;