Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / DataGridRowHeaderAutomationPeer.cs / 1305600 / DataGridRowHeaderAutomationPeer.cs
using System;
using System.Collections.Generic;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using MS.Internal;
namespace System.Windows.Automation.Peers
{
///
/// AutomationPeer for DataGridRowHeader
///
public sealed class DataGridRowHeaderAutomationPeer : ButtonBaseAutomationPeer
{
#region Constructors
///
/// AutomationPeer for DataGridRowHeader
///
/// DataGridRowHeader
public DataGridRowHeaderAutomationPeer(DataGridRowHeader 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.HeaderItem;
}
///
/// 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;
}
///
override protected bool IsOffscreenCore()
{
if (!Owner.IsVisible)
return true;
Rect boundingRect = CalculateVisibleBoundingRect();
return DoubleUtil.AreClose(boundingRect, Rect.Empty) || DoubleUtil.AreClose(boundingRect.Height, 0.0) || DoubleUtil.AreClose(boundingRect.Width, 0.0);
}
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AlternateView.cs
- PeerCollaboration.cs
- SinglePageViewer.cs
- HostedHttpRequestAsyncResult.cs
- SymLanguageType.cs
- ShaderRenderModeValidation.cs
- PingOptions.cs
- GenericWebPart.cs
- KeyedHashAlgorithm.cs
- DataTemplateSelector.cs
- WinInetCache.cs
- WebPartCollection.cs
- MemberDomainMap.cs
- TextShapeableCharacters.cs
- XamlSerializationHelper.cs
- TraceUtility.cs
- GeometryModel3D.cs
- WindowVisualStateTracker.cs
- FrugalList.cs
- RootAction.cs
- StylusDevice.cs
- ADRoleFactory.cs
- NavigationPropertyEmitter.cs
- ToolStripItemEventArgs.cs
- PrintDialogException.cs
- SimpleApplicationHost.cs
- SQLMembershipProvider.cs
- Pens.cs
- TextSerializer.cs
- XPathDocumentNavigator.cs
- BindingMemberInfo.cs
- HttpHandlerAction.cs
- PbrsForward.cs
- DataControlFieldHeaderCell.cs
- GroupQuery.cs
- ChannelManagerBase.cs
- MatrixCamera.cs
- SmtpMail.cs
- ImageConverter.cs
- ContourSegment.cs
- MSHTMLHost.cs
- OptimalBreakSession.cs
- TlsnegoTokenProvider.cs
- KnownColorTable.cs
- LineSegment.cs
- ExtensionWindow.cs
- AlternationConverter.cs
- SyndicationDeserializer.cs
- ComplexPropertyEntry.cs
- WebPartZone.cs
- OpenFileDialog.cs
- TextOnlyOutput.cs
- ObjectReaderCompiler.cs
- ImageSource.cs
- MouseActionValueSerializer.cs
- NotSupportedException.cs
- Calendar.cs
- Registry.cs
- BamlLocalizableResourceKey.cs
- XmlSerializationWriter.cs
- cryptoapiTransform.cs
- PopupEventArgs.cs
- BoolExpr.cs
- Base64Stream.cs
- SemaphoreSecurity.cs
- CompilerLocalReference.cs
- Debug.cs
- Stream.cs
- ConsoleCancelEventArgs.cs
- RequestUriProcessor.cs
- HitTestWithPointDrawingContextWalker.cs
- XMLSchema.cs
- ControllableStoryboardAction.cs
- EnumBuilder.cs
- ByteStreamGeometryContext.cs
- DesignerForm.cs
- FocusTracker.cs
- PtsPage.cs
- TransformerInfoCollection.cs
- ErrorWebPart.cs
- DecoderReplacementFallback.cs
- StyleSelector.cs
- TextParaClient.cs
- TableAutomationPeer.cs
- KerberosRequestorSecurityToken.cs
- ProviderConnectionPointCollection.cs
- PerfService.cs
- SafeArrayTypeMismatchException.cs
- AuthorizationRuleCollection.cs
- XmlObjectSerializerContext.cs
- DataTableReaderListener.cs
- ToolstripProfessionalRenderer.cs
- TypeElement.cs
- precedingsibling.cs
- Function.cs
- ParameterToken.cs
- AssociationSet.cs
- XmlSchemaInclude.cs
- SqlColumnizer.cs
- TreeViewCancelEvent.cs