Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / DataGridColumnHeaderAutomationPeer.cs / 1305600 / DataGridColumnHeaderAutomationPeer.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 DataGridColumnHeader /// public sealed class DataGridColumnHeaderAutomationPeer : ButtonBaseAutomationPeer { #region Constructors ////// AutomationPeer for DataGridColumnHeader /// /// DataGridColumnHeader public DataGridColumnHeaderAutomationPeer(DataGridColumnHeader 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; } /// 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
- RotateTransform3D.cs
- RequestSecurityTokenResponse.cs
- EpmContentSerializer.cs
- IndexedGlyphRun.cs
- WeakReferenceKey.cs
- TextDecorationLocationValidation.cs
- CacheAxisQuery.cs
- ToolStripRenderEventArgs.cs
- DefaultShape.cs
- DataBindingCollection.cs
- DataGridViewComboBoxColumnDesigner.cs
- FlowDocumentView.cs
- DbMetaDataCollectionNames.cs
- FusionWrap.cs
- WindowsRichEdit.cs
- NamespaceQuery.cs
- Queue.cs
- PbrsForward.cs
- BulletedList.cs
- SqlUdtInfo.cs
- ManipulationStartingEventArgs.cs
- OperandQuery.cs
- Span.cs
- ServiceKnownTypeAttribute.cs
- log.cs
- EmptyReadOnlyDictionaryInternal.cs
- QueueTransferProtocol.cs
- CustomCredentialPolicy.cs
- AutomationElement.cs
- XmlSchemaIdentityConstraint.cs
- AsyncOperationManager.cs
- ADMembershipProvider.cs
- TraceLog.cs
- DataConnectionHelper.cs
- AbsoluteQuery.cs
- StylusSystemGestureEventArgs.cs
- IndicShape.cs
- PerformanceCounterManager.cs
- XmlILAnnotation.cs
- Slider.cs
- AttributeEmitter.cs
- StreamWithDictionary.cs
- DBParameter.cs
- EnterpriseServicesHelper.cs
- TableAutomationPeer.cs
- BuildManagerHost.cs
- ColumnResult.cs
- CodeParameterDeclarationExpressionCollection.cs
- MsmqIntegrationOutputChannel.cs
- CompiledXpathExpr.cs
- UInt16Converter.cs
- RemotingAttributes.cs
- AnnotationAuthorChangedEventArgs.cs
- ScriptingJsonSerializationSection.cs
- BamlTreeNode.cs
- DataGridViewCellStateChangedEventArgs.cs
- JpegBitmapEncoder.cs
- OrderedDictionary.cs
- BindingWorker.cs
- WeakHashtable.cs
- SizeAnimation.cs
- FixedTextSelectionProcessor.cs
- TextBox.cs
- SocketPermission.cs
- MetadataFile.cs
- TdsParser.cs
- DataRow.cs
- FontStretch.cs
- TraceInternal.cs
- TableItemPatternIdentifiers.cs
- ToolStripControlHost.cs
- DataGridViewEditingControlShowingEventArgs.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SystemResources.cs
- ReflectTypeDescriptionProvider.cs
- Rect.cs
- MsmqIntegrationBindingElement.cs
- TemplateBamlRecordReader.cs
- LateBoundBitmapDecoder.cs
- AxisAngleRotation3D.cs
- ScriptingRoleServiceSection.cs
- KeyedQueue.cs
- TextBox.cs
- ZipIOExtraField.cs
- TextServicesCompartmentContext.cs
- bidPrivateBase.cs
- DesignerAutoFormat.cs
- SecurityAccessDeniedException.cs
- counter.cs
- ReaderContextStackData.cs
- ParagraphVisual.cs
- NamedPermissionSet.cs
- IdnMapping.cs
- DrawingContextDrawingContextWalker.cs
- WsrmMessageInfo.cs
- MessageDecoder.cs
- Parsers.cs
- HtmlPageAdapter.cs
- XmlElementCollection.cs
- OdbcError.cs