using System; using System.Collections.Generic; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; using System.Windows.Controls; using EGC = ExtendedGrid.Microsoft.Windows.Controls; namespace ExtendedGrid.Microsoft.Windows.Controls { /// /// AutomationPeer for DataGridColumnHeadersPresenter /// public sealed class DataGridColumnHeadersPresenterAutomationPeer : FrameworkElementAutomationPeer { #region Constructors /// /// AutomationPeer for DataGridColumnHeadersPresenter /// /// DataGridColumnHeadersPresenter public DataGridColumnHeadersPresenterAutomationPeer(EGC.DataGridColumnHeadersPresenter owner) : base(owner) { } #endregion #region AutomationPeer Overrides /// /// Gets the control type for the element that is associated with the UI Automation peer. /// /// The control type. protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Header; } /// /// Called by GetClassName that gets a human readable name that, in addition to AutomationControlType, /// differentiates the control represented by this AutomationPeer. /// /// The string that contains the name. protected override string GetClassNameCore() { return Owner.GetType().Name; } /// /// Gets a value that specifies whether the element is a content element. /// /// true if the element is a content element; otherwise false protected override bool IsContentElementCore() { return false; } #endregion } }