Code:
/ 4.0 / 4.0 / 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. 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
- GridLength.cs
- WebPartZone.cs
- Cursor.cs
- Window.cs
- NegotiateStream.cs
- AcceleratedTokenAuthenticator.cs
- Animatable.cs
- DelayedRegex.cs
- WebMessageBodyStyleHelper.cs
- PointHitTestResult.cs
- ProfileService.cs
- WebBrowsableAttribute.cs
- DummyDataSource.cs
- ColorContext.cs
- EndOfStreamException.cs
- securitycriticaldataClass.cs
- DataGridViewRowEventArgs.cs
- HebrewCalendar.cs
- CodeDelegateInvokeExpression.cs
- CompilerLocalReference.cs
- ToolStripControlHost.cs
- PriorityQueue.cs
- figurelength.cs
- EdmType.cs
- DynamicPropertyHolder.cs
- ButtonRenderer.cs
- MarkupExtensionParser.cs
- Thickness.cs
- Exceptions.cs
- HttpStaticObjectsCollectionWrapper.cs
- ContainerUtilities.cs
- ReadWriteSpinLock.cs
- UndoEngine.cs
- DataSvcMapFile.cs
- _DigestClient.cs
- FamilyTypefaceCollection.cs
- FontSource.cs
- ListViewUpdateEventArgs.cs
- MonthChangedEventArgs.cs
- SelectedDatesCollection.cs
- IDispatchConstantAttribute.cs
- XamlSerializationHelper.cs
- XamlInt32CollectionSerializer.cs
- HostedNamedPipeTransportManager.cs
- GlyphingCache.cs
- WindowsGrip.cs
- XdrBuilder.cs
- DNS.cs
- XsdValidatingReader.cs
- HttpCachePolicyBase.cs
- LineGeometry.cs
- WebException.cs
- QuaternionAnimationUsingKeyFrames.cs
- TraceLog.cs
- PermissionSetTriple.cs
- ObjectDataSourceStatusEventArgs.cs
- ActiveXContainer.cs
- HttpInputStream.cs
- InputLanguageManager.cs
- ReflectTypeDescriptionProvider.cs
- HttpAsyncResult.cs
- AutomationPatternInfo.cs
- Peer.cs
- Operator.cs
- MessageUtil.cs
- ISO2022Encoding.cs
- Double.cs
- TabletDeviceInfo.cs
- FileCodeGroup.cs
- OlePropertyStructs.cs
- DependencyObject.cs
- SwitchAttribute.cs
- NullableDecimalMinMaxAggregationOperator.cs
- RuleSettingsCollection.cs
- ChtmlLinkAdapter.cs
- CssClassPropertyAttribute.cs
- ManagedIStream.cs
- WindowsAuthenticationModule.cs
- ElementAction.cs
- ParagraphVisual.cs
- CodeBlockBuilder.cs
- AnnotationResourceCollection.cs
- ControlPaint.cs
- ItemContainerPattern.cs
- EncodingTable.cs
- ConfigurationStrings.cs
- ListControl.cs
- Debugger.cs
- AsyncOperation.cs
- control.ime.cs
- XmlSchemaSimpleTypeUnion.cs
- ApplicationTrust.cs
- _ListenerAsyncResult.cs
- FormView.cs
- StickyNoteAnnotations.cs
- ToolStripItemRenderEventArgs.cs
- XmlFormatWriterGenerator.cs
- SqlDataSourceView.cs
- SignatureConfirmationElement.cs
- WebHttpBehavior.cs