Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/DataGridTransform/DataGrid/Microsoft/Windows/Automation/Peers/DataGridColumnHeadersPresen...

61 lines
1.9 KiB
C#

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
{
/// <summary>
/// AutomationPeer for DataGridColumnHeadersPresenter
/// </summary>
public sealed class DataGridColumnHeadersPresenterAutomationPeer : FrameworkElementAutomationPeer
{
#region Constructors
/// <summary>
/// AutomationPeer for DataGridColumnHeadersPresenter
/// </summary>
/// <param name="owner">DataGridColumnHeadersPresenter</param>
public DataGridColumnHeadersPresenterAutomationPeer(EGC.DataGridColumnHeadersPresenter owner)
: base(owner)
{
}
#endregion
#region AutomationPeer Overrides
/// <summary>
/// Gets the control type for the element that is associated with the UI Automation peer.
/// </summary>
/// <returns>The control type.</returns>
protected override AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.Header;
}
/// <summary>
/// Called by GetClassName that gets a human readable name that, in addition to AutomationControlType,
/// differentiates the control represented by this AutomationPeer.
/// </summary>
/// <returns>The string that contains the name.</returns>
protected override string GetClassNameCore()
{
return Owner.GetType().Name;
}
/// <summary>
/// Gets a value that specifies whether the element is a content element.
/// </summary>
/// <returns>true if the element is a content element; otherwise false</returns>
protected override bool IsContentElementCore()
{
return false;
}
#endregion
}
}