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
- XmlReaderSettings.cs
- HMACRIPEMD160.cs
- PropertyChangeTracker.cs
- CollectionBuilder.cs
- ScrollContentPresenter.cs
- MaskedTextBoxTextEditorDropDown.cs
- HMAC.cs
- ClientSponsor.cs
- Columns.cs
- SoapIncludeAttribute.cs
- DefaultEvaluationContext.cs
- FlagPanel.cs
- ObjectDataSourceMethodEventArgs.cs
- TimeSpanSecondsConverter.cs
- CharEntityEncoderFallback.cs
- DataGridView.cs
- HttpCacheVaryByContentEncodings.cs
- MergePropertyDescriptor.cs
- PointAnimationUsingPath.cs
- SchemaNamespaceManager.cs
- SchemaNames.cs
- MenuDesigner.cs
- SequenceDesigner.cs
- OdbcReferenceCollection.cs
- TabletDeviceInfo.cs
- VirtualizedItemPattern.cs
- UpdateCompiler.cs
- ZoneButton.cs
- CanonicalFontFamilyReference.cs
- ConfigXmlSignificantWhitespace.cs
- FormattedTextSymbols.cs
- WorkflowInstanceContextProvider.cs
- SpeakInfo.cs
- FastPropertyAccessor.cs
- RMEnrollmentPage2.cs
- ServiceSecurityContext.cs
- XmlCDATASection.cs
- ObjectListSelectEventArgs.cs
- OleAutBinder.cs
- ServiceNameElement.cs
- VideoDrawing.cs
- EdmItemCollection.OcAssemblyCache.cs
- GridViewCommandEventArgs.cs
- WebPartDisplayMode.cs
- DrawingAttributeSerializer.cs
- SafeWaitHandle.cs
- RemoteWebConfigurationHost.cs
- MsmqIntegrationMessagePool.cs
- DropShadowBitmapEffect.cs
- DataGridBoundColumn.cs
- TextEditorTables.cs
- XamlBrushSerializer.cs
- XmlElementList.cs
- HandlerMappingMemo.cs
- InheritanceAttribute.cs
- XmlValidatingReaderImpl.cs
- StringSource.cs
- StructuredProperty.cs
- DataListItem.cs
- StylusDownEventArgs.cs
- XmlNodeComparer.cs
- Empty.cs
- SystemDropShadowChrome.cs
- HttpInputStream.cs
- KeyValueInternalCollection.cs
- MonikerUtility.cs
- SortDescription.cs
- UdpChannelFactory.cs
- AutoGeneratedField.cs
- XmlAtomErrorReader.cs
- ValidatorCollection.cs
- LinqDataSourceDisposeEventArgs.cs
- XmlC14NWriter.cs
- BitmapImage.cs
- TextProviderWrapper.cs
- XmlSchemaNotation.cs
- IItemContainerGenerator.cs
- SamlAuthorizationDecisionStatement.cs
- DiscoveryClientReferences.cs
- NotSupportedException.cs
- WebPartCollection.cs
- RoutedEventHandlerInfo.cs
- GridViewRowPresenter.cs
- IxmlLineInfo.cs
- DataContractJsonSerializer.cs
- PersonalizationState.cs
- DataObjectFieldAttribute.cs
- RegexMatch.cs
- ArrayExtension.cs
- TaskFactory.cs
- Tool.cs
- GridToolTip.cs
- StylusPointCollection.cs
- HttpWebRequestElement.cs
- Schema.cs
- EventLog.cs
- SemaphoreSecurity.cs
- ArrangedElement.cs
- ConnectionConsumerAttribute.cs
- HtmlButton.cs