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
- FlowDocument.cs
- ColorKeyFrameCollection.cs
- ValidationSummary.cs
- ShellProvider.cs
- UIElementCollection.cs
- arabicshape.cs
- SoapAttributeOverrides.cs
- CustomErrorsSection.cs
- ChangePassword.cs
- PropertyEmitterBase.cs
- ActivityDesigner.cs
- DoubleIndependentAnimationStorage.cs
- unsafenativemethodsother.cs
- WindowsStatic.cs
- QilUnary.cs
- Soap.cs
- GradientStop.cs
- CodeNamespaceImportCollection.cs
- XPathDocumentNavigator.cs
- BuilderPropertyEntry.cs
- X509CertificateTokenFactoryCredential.cs
- TreeNodeEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- Image.cs
- SqlMetaData.cs
- SoapRpcServiceAttribute.cs
- CreateUserWizardStep.cs
- SamlAuthorityBinding.cs
- TypeForwardedFromAttribute.cs
- nulltextcontainer.cs
- ExtractorMetadata.cs
- DataColumnCollection.cs
- ListSortDescriptionCollection.cs
- RemoteWebConfigurationHostStream.cs
- XPathChildIterator.cs
- Certificate.cs
- SpellerStatusTable.cs
- WindowsPrincipal.cs
- NativeCppClassAttribute.cs
- TextServicesHost.cs
- TableChangeProcessor.cs
- CopyNamespacesAction.cs
- WindowsComboBox.cs
- Drawing.cs
- PointLight.cs
- Helpers.cs
- DbParameterHelper.cs
- FixedSOMTableRow.cs
- AppAction.cs
- KnownBoxes.cs
- XPathParser.cs
- InspectionWorker.cs
- BaseTransportHeaders.cs
- RegexWorker.cs
- CompilationLock.cs
- GenericRootAutomationPeer.cs
- ToolbarAUtomationPeer.cs
- TogglePattern.cs
- NavigationProperty.cs
- ProgressBar.cs
- XmlDocument.cs
- WindowsTreeView.cs
- DescriptionCreator.cs
- MouseCaptureWithinProperty.cs
- DynamicValueConverter.cs
- _SSPISessionCache.cs
- SspiWrapper.cs
- CommonObjectSecurity.cs
- StructuredTypeEmitter.cs
- GroupAggregateExpr.cs
- ActiveXHost.cs
- UnmanagedBitmapWrapper.cs
- ContractMethodParameterInfo.cs
- _TransmitFileOverlappedAsyncResult.cs
- VirtualizedItemPattern.cs
- PrivateFontCollection.cs
- UpdateManifestForBrowserApplication.cs
- StaticContext.cs
- RangeContentEnumerator.cs
- ImmutableCollection.cs
- StrongNameKeyPair.cs
- FileSystemInfo.cs
- ValidationResult.cs
- GlyphElement.cs
- DataGridTableStyleMappingNameEditor.cs
- HostnameComparisonMode.cs
- NamedPipeTransportElement.cs
- RelationshipEnd.cs
- ImageDrawing.cs
- CryptoKeySecurity.cs
- UpdateManifestForBrowserApplication.cs
- ConditionalWeakTable.cs
- Int32CAMarshaler.cs
- HMACSHA256.cs
- ImageCollectionEditor.cs
- Pkcs7Recipient.cs
- DbProviderFactoriesConfigurationHandler.cs
- PieceDirectory.cs
- CollectionViewGroupInternal.cs
- OrderByBuilder.cs