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
- SafeReadContext.cs
- ServiceDescriptionSerializer.cs
- Message.cs
- DataGridViewLayoutData.cs
- _AutoWebProxyScriptHelper.cs
- RayMeshGeometry3DHitTestResult.cs
- DebuggerAttributes.cs
- SamlSecurityToken.cs
- AttributeXamlType.cs
- TabControlCancelEvent.cs
- EasingFunctionBase.cs
- StrongNameIdentityPermission.cs
- Schema.cs
- DecimalAnimationUsingKeyFrames.cs
- SchemaImporterExtensionElementCollection.cs
- DelegatingTypeDescriptionProvider.cs
- DbSourceCommand.cs
- EditorPartChrome.cs
- HwndSourceParameters.cs
- PagesSection.cs
- CountdownEvent.cs
- KeySpline.cs
- ChangeConflicts.cs
- MessageSmuggler.cs
- DrawingAttributes.cs
- listviewsubitemcollectioneditor.cs
- WorkflowTransactionOptions.cs
- FormViewUpdateEventArgs.cs
- Track.cs
- ListViewItem.cs
- ArcSegment.cs
- CodeNamespaceCollection.cs
- TerminatorSinks.cs
- OpCellTreeNode.cs
- EncryptedXml.cs
- UriExt.cs
- FaultConverter.cs
- SafeProcessHandle.cs
- PerformanceCounterCategory.cs
- LinqExpressionNormalizer.cs
- WindowsScrollBarBits.cs
- SqlDataSourceSelectingEventArgs.cs
- SwitchAttribute.cs
- SecurityPolicySection.cs
- StorageBasedPackageProperties.cs
- ForeignKeyConstraint.cs
- BitmapEffect.cs
- DataBindingExpressionBuilder.cs
- sqlpipe.cs
- DescriptionAttribute.cs
- QilTypeChecker.cs
- HashAlgorithm.cs
- HtmlHistory.cs
- FixedSOMPageElement.cs
- ResourceExpressionBuilder.cs
- Ops.cs
- ColumnCollectionEditor.cs
- PageSettings.cs
- SqlDataSourceEnumerator.cs
- SafeNativeMethods.cs
- httpserverutility.cs
- SelectionListDesigner.cs
- DataChangedEventManager.cs
- Border.cs
- dbdatarecord.cs
- UshortList2.cs
- Array.cs
- EventLogEntry.cs
- FilterElement.cs
- BooleanStorage.cs
- NotFiniteNumberException.cs
- XmlStringTable.cs
- HandoffBehavior.cs
- SerializerProvider.cs
- ListViewHitTestInfo.cs
- BitmapDownload.cs
- QuestionEventArgs.cs
- NameObjectCollectionBase.cs
- PaginationProgressEventArgs.cs
- FrameDimension.cs
- SurrogateEncoder.cs
- DataGridViewTopRowAccessibleObject.cs
- RuleConditionDialog.Designer.cs
- HtmlDocument.cs
- RemotingException.cs
- OnOperation.cs
- CodeValidator.cs
- Currency.cs
- OperationDescription.cs
- Accessible.cs
- ConfigurationStrings.cs
- LockCookie.cs
- BitmapEffectvisualstate.cs
- DefaultProxySection.cs
- CorrelationToken.cs
- ViewCellRelation.cs
- GeneralTransform3DGroup.cs
- DescendantBaseQuery.cs
- BaseResourcesBuildProvider.cs
- IUnknownConstantAttribute.cs