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
- EdmTypeAttribute.cs
- PassportIdentity.cs
- ToolStripOverflowButton.cs
- ConnectionStringsExpressionBuilder.cs
- MetaColumn.cs
- ValidatingReaderNodeData.cs
- DownloadProgressEventArgs.cs
- MenuStrip.cs
- QuaternionKeyFrameCollection.cs
- PropertyEmitter.cs
- CheckedPointers.cs
- RenderDataDrawingContext.cs
- HtmlControl.cs
- GeneralTransform.cs
- DbTypeMap.cs
- TypedReference.cs
- SafeEventHandle.cs
- AsyncOperation.cs
- BitmapScalingModeValidation.cs
- OracleColumn.cs
- BinaryUtilClasses.cs
- QueryCacheKey.cs
- MouseGestureConverter.cs
- SchemaConstraints.cs
- StrongNameUtility.cs
- CssClassPropertyAttribute.cs
- HttpChannelListener.cs
- UnmanagedMemoryAccessor.cs
- MouseActionConverter.cs
- TextParagraphCache.cs
- DataGridHeaderBorder.cs
- MessageDecoder.cs
- RadioButton.cs
- RemoteHelper.cs
- Margins.cs
- CustomLineCap.cs
- ParenthesizePropertyNameAttribute.cs
- FontEmbeddingManager.cs
- HtmlMeta.cs
- cookie.cs
- EnumConverter.cs
- AdapterUtil.cs
- PathData.cs
- SqlMultiplexer.cs
- DirectoryInfo.cs
- EndpointDiscoveryElement.cs
- OdbcDataAdapter.cs
- indexingfiltermarshaler.cs
- InheritedPropertyChangedEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- TreeNodeCollectionEditor.cs
- Int64AnimationBase.cs
- PerfCounterSection.cs
- Cursors.cs
- DeferredBinaryDeserializerExtension.cs
- ServicePointManagerElement.cs
- Compress.cs
- MessageQueueAccessControlEntry.cs
- TcpClientCredentialType.cs
- ConnectionConsumerAttribute.cs
- ArglessEventHandlerProxy.cs
- Barrier.cs
- HandlerBase.cs
- SafeWaitHandle.cs
- XmlSchemaComplexType.cs
- GridLength.cs
- COM2Properties.cs
- ListViewGroupConverter.cs
- RecordsAffectedEventArgs.cs
- BinaryObjectWriter.cs
- LocatorGroup.cs
- RuntimeConfig.cs
- ContextInformation.cs
- PersonalizationState.cs
- EditBehavior.cs
- WebContext.cs
- BrowserCapabilitiesFactoryBase.cs
- DocumentPageHost.cs
- BlobPersonalizationState.cs
- Control.cs
- TextTreeDeleteContentUndoUnit.cs
- PackagePart.cs
- SafeEventLogWriteHandle.cs
- ArrayConverter.cs
- __ConsoleStream.cs
- BackgroundFormatInfo.cs
- PublisherIdentityPermission.cs
- InfoCardHelper.cs
- StylusPointPropertyInfo.cs
- ControlParser.cs
- CompositeActivityMarkupSerializer.cs
- OptionalColumn.cs
- EntityDataReader.cs
- TypeDescriptor.cs
- ImageMap.cs
- EpmTargetTree.cs
- AppDomainFactory.cs
- AssemblyUtil.cs
- SpecialNameAttribute.cs
- ActivityBuilder.cs