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
- Msec.cs
- ASCIIEncoding.cs
- SspiWrapper.cs
- WebEventCodes.cs
- DataGridViewCellValidatingEventArgs.cs
- ArgumentValueSerializer.cs
- PropertyTabChangedEvent.cs
- WebBrowserContainer.cs
- LambdaCompiler.cs
- CompositeDataBoundControl.cs
- PrimarySelectionGlyph.cs
- CompilationLock.cs
- GraphicsContext.cs
- DataGridViewRowHeaderCell.cs
- PropertyToken.cs
- DisableDpiAwarenessAttribute.cs
- AddressAlreadyInUseException.cs
- RadioButtonPopupAdapter.cs
- AdapterDictionary.cs
- EditorPart.cs
- TextAnchor.cs
- PropertyInformationCollection.cs
- XamlGridLengthSerializer.cs
- Pen.cs
- RenderOptions.cs
- FormattedTextSymbols.cs
- XmlTypeMapping.cs
- ChannelBinding.cs
- RowParagraph.cs
- CompensatableSequenceActivity.cs
- ProcessModule.cs
- XmlQueryType.cs
- EncryptedData.cs
- WSFederationHttpSecurityElement.cs
- SSmlParser.cs
- StreamingContext.cs
- DesignOnlyAttribute.cs
- StaticResourceExtension.cs
- DynamicValidator.cs
- MgmtResManager.cs
- XmlSchemaAnnotated.cs
- CultureSpecificStringDictionary.cs
- AuthorizationSection.cs
- BindingManagerDataErrorEventArgs.cs
- FileSecurity.cs
- DynamicMethod.cs
- GridItemCollection.cs
- FormViewCommandEventArgs.cs
- WmiEventSink.cs
- OracleConnectionStringBuilder.cs
- CompositeKey.cs
- ComUdtElementCollection.cs
- DragEvent.cs
- SuspendDesigner.cs
- ColorDialog.cs
- InputScopeAttribute.cs
- HttpResponseWrapper.cs
- arabicshape.cs
- InvalidPropValue.cs
- KnownTypesHelper.cs
- WebBrowserPermission.cs
- Typography.cs
- NamedPermissionSet.cs
- ServiceInstallComponent.cs
- SchemaType.cs
- SubMenuStyleCollection.cs
- NonBatchDirectoryCompiler.cs
- Configuration.cs
- VisualStyleInformation.cs
- HttpCacheParams.cs
- EntityDataSourceChangedEventArgs.cs
- ModulesEntry.cs
- LinearGradientBrush.cs
- XmlText.cs
- IDictionary.cs
- TextBox.cs
- ErrorActivity.cs
- TablePattern.cs
- DataGridViewColumnEventArgs.cs
- DecoderExceptionFallback.cs
- TimeSpanOrInfiniteConverter.cs
- RouteParametersHelper.cs
- ApplicationBuildProvider.cs
- DesignerActionMethodItem.cs
- DataGridViewImageColumn.cs
- EntityCodeGenerator.cs
- CellParagraph.cs
- FragmentNavigationEventArgs.cs
- _HeaderInfo.cs
- ConsoleTraceListener.cs
- XmlSerializationWriter.cs
- TextViewBase.cs
- ToolStripGripRenderEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- ContextMarshalException.cs
- PauseStoryboard.cs
- VectorConverter.cs
- AuthenticationSection.cs
- FirstMatchCodeGroup.cs
- KeyInfo.cs