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
- Lock.cs
- GregorianCalendarHelper.cs
- SvcMapFileSerializer.cs
- WindowsRebar.cs
- DiscoveryService.cs
- Size3D.cs
- OptimizedTemplateContentHelper.cs
- IdentityManager.cs
- EncodingDataItem.cs
- SortDescriptionCollection.cs
- Registry.cs
- ListenDesigner.cs
- GatewayIPAddressInformationCollection.cs
- TdsParameterSetter.cs
- ChangesetResponse.cs
- ExpressionBindings.cs
- StylusPointPropertyInfo.cs
- ListControlStringCollectionEditor.cs
- GiveFeedbackEventArgs.cs
- FieldTemplateFactory.cs
- UrlMapping.cs
- ParsedAttributeCollection.cs
- TimeStampChecker.cs
- AnnotationDocumentPaginator.cs
- Connection.cs
- PenLineJoinValidation.cs
- StringFunctions.cs
- CurrentChangingEventArgs.cs
- Double.cs
- ToolBarButton.cs
- StreamReader.cs
- StringConcat.cs
- Debug.cs
- Latin1Encoding.cs
- EastAsianLunisolarCalendar.cs
- RegexWorker.cs
- NotSupportedException.cs
- DateBoldEvent.cs
- WebResponse.cs
- WebBrowserEvent.cs
- ExtenderHelpers.cs
- InfocardClientCredentials.cs
- ModulesEntry.cs
- DurableEnlistmentState.cs
- KeyFrames.cs
- ScriptingRoleServiceSection.cs
- _SslSessionsCache.cs
- SqlDataRecord.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Fonts.cs
- IPEndPointCollection.cs
- XpsFilter.cs
- ChangePasswordAutoFormat.cs
- AppDomainManager.cs
- CodePageEncoding.cs
- NullableDecimalMinMaxAggregationOperator.cs
- CompModHelpers.cs
- Misc.cs
- GridViewRowPresenterBase.cs
- ReliableChannelBinder.cs
- InstanceCreationEditor.cs
- RoutingTable.cs
- HwndProxyElementProvider.cs
- ExpressionReplacer.cs
- ChtmlTextBoxAdapter.cs
- SHA512Managed.cs
- ItemCheckEvent.cs
- FixedTextSelectionProcessor.cs
- WaitHandle.cs
- SemanticAnalyzer.cs
- FindRequestContext.cs
- GridViewSortEventArgs.cs
- UserPersonalizationStateInfo.cs
- HostingPreferredMapPath.cs
- DbCommandDefinition.cs
- QilInvokeEarlyBound.cs
- DEREncoding.cs
- TableLayoutRowStyleCollection.cs
- NamedPipeConnectionPool.cs
- Canvas.cs
- TrackingLocationCollection.cs
- SizeChangedEventArgs.cs
- InlineObject.cs
- RouteCollection.cs
- ErrorRuntimeConfig.cs
- TCEAdapterGenerator.cs
- AnimationStorage.cs
- ControlPersister.cs
- FixedHyperLink.cs
- RoutedEventHandlerInfo.cs
- SafeSecurityHelper.cs
- RTLAwareMessageBox.cs
- ShaderEffect.cs
- DefaultSerializationProviderAttribute.cs
- CngAlgorithm.cs
- MexHttpBindingCollectionElement.cs
- XmlWriterSettings.cs
- ProgressiveCrcCalculatingStream.cs
- StyleModeStack.cs
- TemplateContainer.cs