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
- IOThreadScheduler.cs
- DataGridViewCellEventArgs.cs
- HttpConfigurationSystem.cs
- ConfigurationException.cs
- UnsafeNativeMethods.cs
- OleDbParameter.cs
- DataObject.cs
- ClaimTypes.cs
- TreeNodeConverter.cs
- TransportConfigurationTypeElement.cs
- QuadraticBezierSegment.cs
- CurrencyManager.cs
- ItemsChangedEventArgs.cs
- DataGridBoolColumn.cs
- DispatcherFrame.cs
- XmlDictionaryReaderQuotas.cs
- FlowchartSizeFeature.cs
- CharAnimationBase.cs
- IProducerConsumerCollection.cs
- Logging.cs
- QueueProcessor.cs
- Translator.cs
- OrderablePartitioner.cs
- CustomGrammar.cs
- PassportAuthenticationModule.cs
- UserControlParser.cs
- PlainXmlDeserializer.cs
- DataContractSerializerServiceBehavior.cs
- ProgressiveCrcCalculatingStream.cs
- TraceLevelStore.cs
- ConfigurationSchemaErrors.cs
- StartFileNameEditor.cs
- Brush.cs
- ProvidePropertyAttribute.cs
- QilUnary.cs
- MimeWriter.cs
- OneWayChannelFactory.cs
- _DisconnectOverlappedAsyncResult.cs
- CreateSequence.cs
- FormsIdentity.cs
- typedescriptorpermission.cs
- PrintDialog.cs
- SqlMethodAttribute.cs
- CultureSpecificStringDictionary.cs
- FunctionImportElement.cs
- PaperSource.cs
- ModuleConfigurationInfo.cs
- QualifiedCellIdBoolean.cs
- ProfileEventArgs.cs
- ClientScriptManager.cs
- ContextMarshalException.cs
- CheckedPointers.cs
- CustomValidator.cs
- DesignerForm.cs
- PixelShader.cs
- SpeechAudioFormatInfo.cs
- PreviewPageInfo.cs
- ExpressionPrefixAttribute.cs
- SecurityRuntime.cs
- OutputCacheProfile.cs
- TaskHelper.cs
- CodeNamespaceImportCollection.cs
- WebPartVerb.cs
- RemotingConfigParser.cs
- XmlAnyElementAttribute.cs
- StringFormat.cs
- ListParaClient.cs
- KnownAssembliesSet.cs
- Monitor.cs
- WindowsListBox.cs
- ReadOnlyHierarchicalDataSource.cs
- SafeLocalMemHandle.cs
- AutomationEventArgs.cs
- DocumentPageView.cs
- MatrixStack.cs
- DomainUpDown.cs
- ProfileSettings.cs
- HttpDictionary.cs
- RenderTargetBitmap.cs
- CompareValidator.cs
- DiscreteKeyFrames.cs
- StylusPointDescription.cs
- TypedTableBaseExtensions.cs
- Freezable.cs
- MsmqHostedTransportManager.cs
- StrongNameKeyPair.cs
- IODescriptionAttribute.cs
- ResourceManager.cs
- SamlAuthorityBinding.cs
- XmlSchemaException.cs
- ZipIOExtraFieldPaddingElement.cs
- DetailsViewUpdatedEventArgs.cs
- SHA1Managed.cs
- WindowsContainer.cs
- UserPreferenceChangedEventArgs.cs
- TypeFieldSchema.cs
- SqlLiftIndependentRowExpressions.cs
- RequestCacheValidator.cs
- SystemTcpConnection.cs
- ParseHttpDate.cs