Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / DataGridColumnHeaderAutomationPeer.cs / 1305600 / DataGridColumnHeaderAutomationPeer.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 DataGridColumnHeader /// public sealed class DataGridColumnHeaderAutomationPeer : ButtonBaseAutomationPeer { #region Constructors ////// AutomationPeer for DataGridColumnHeader /// /// DataGridColumnHeader public DataGridColumnHeaderAutomationPeer(DataGridColumnHeader 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; } /// 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 DataGridColumnHeader /// public sealed class DataGridColumnHeaderAutomationPeer : ButtonBaseAutomationPeer { #region Constructors ////// AutomationPeer for DataGridColumnHeader /// /// DataGridColumnHeader public DataGridColumnHeaderAutomationPeer(DataGridColumnHeader 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; } /// 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
- FontNamesConverter.cs
- XMLSchema.cs
- RequestNavigateEventArgs.cs
- ManualResetEvent.cs
- ClientSettingsStore.cs
- ExpressionBindingCollection.cs
- ErrorFormatterPage.cs
- IOThreadScheduler.cs
- LateBoundBitmapDecoder.cs
- ProcessThread.cs
- TypeDescriptor.cs
- OleDbSchemaGuid.cs
- complextypematerializer.cs
- SharedStatics.cs
- InnerItemCollectionView.cs
- _DomainName.cs
- ArrayWithOffset.cs
- SynchronizingStream.cs
- RequestUriProcessor.cs
- AccessDataSourceView.cs
- ConfigurationLoader.cs
- OleDbDataReader.cs
- SoapSchemaImporter.cs
- StorageMappingItemLoader.cs
- OperationParameterInfo.cs
- StrongNamePublicKeyBlob.cs
- WebHttpDispatchOperationSelectorData.cs
- ToolBarButton.cs
- BaseTemplateParser.cs
- InfocardInteractiveChannelInitializer.cs
- SystemFonts.cs
- SqlFunctionAttribute.cs
- LayoutTable.cs
- AnimationLayer.cs
- FlowLayoutPanel.cs
- DataGridViewComboBoxEditingControl.cs
- BitmapCodecInfoInternal.cs
- EntitySetRetriever.cs
- GraphicsState.cs
- TextRangeEditLists.cs
- CompositeCollectionView.cs
- ContentElementAutomationPeer.cs
- TypeBuilder.cs
- TextAutomationPeer.cs
- WebPartEditVerb.cs
- SqlBuffer.cs
- CodeExporter.cs
- ProviderSettings.cs
- WindowsBrush.cs
- SecureUICommand.cs
- DBDataPermission.cs
- SeekStoryboard.cs
- HtmlListAdapter.cs
- HtmlTitle.cs
- base64Transforms.cs
- WhitespaceRuleReader.cs
- ListViewSelectEventArgs.cs
- validation.cs
- SelectionWordBreaker.cs
- embossbitmapeffect.cs
- UTF8Encoding.cs
- InternalCache.cs
- SslStream.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- WebBrowserSiteBase.cs
- ProcessStartInfo.cs
- AmbientProperties.cs
- XmlAnyAttributeAttribute.cs
- StreamWriter.cs
- SimpleHandlerFactory.cs
- FontFamily.cs
- XmlNavigatorFilter.cs
- Expander.cs
- BaseDataBoundControl.cs
- PartitionResolver.cs
- AccessedThroughPropertyAttribute.cs
- SspiNegotiationTokenProviderState.cs
- PropertyChangedEventManager.cs
- _HelperAsyncResults.cs
- DataControlLinkButton.cs
- EntityDataReader.cs
- ImageFormatConverter.cs
- XmlAnyElementAttributes.cs
- SoapReflectionImporter.cs
- ImageButton.cs
- DocumentStatusResources.cs
- ExpanderAutomationPeer.cs
- NativeMethods.cs
- SplashScreenNativeMethods.cs
- SoapObjectWriter.cs
- JsonQueryStringConverter.cs
- ByteStack.cs
- peernodestatemanager.cs
- OracleConnection.cs
- DataGridViewRow.cs
- MouseEventArgs.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- GlyphRunDrawing.cs
- SelectedCellsChangedEventArgs.cs
- ContainerActivationHelper.cs