Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / GridViewHeaderRowPresenterAutomationPeer.cs / 1305600 / GridViewHeaderRowPresenterAutomationPeer.cs
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class GridViewHeaderRowPresenterAutomationPeer : FrameworkElementAutomationPeer { /// public GridViewHeaderRowPresenterAutomationPeer(GridViewHeaderRowPresenter owner) : base(owner) { } /// override protected string GetClassNameCore() { return "GridViewHeaderRowPresenter"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Header; } /// protected override ListGetChildrenCore() { List list = base.GetChildrenCore(); List newList = null; if (list != null) { newList = new List (list.Count); //GVHRP contains 2 extra column headers, one is dummy header, the other is floating header //We need to remove them from the tree foreach (AutomationPeer peer in list) { if (peer is UIElementAutomationPeer) { GridViewColumnHeader header = ((UIElementAutomationPeer)peer).Owner as GridViewColumnHeader; if (header != null && header.Role == GridViewColumnHeaderRole.Normal) { //Because GVHRP uses inverse sequence to store column headers, we need to use insert here newList.Insert(0, peer); } } } } return newList; } } } // 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
- ObjectDataSourceEventArgs.cs
- EdmItemCollection.cs
- AspCompat.cs
- DBConnectionString.cs
- DependencyPropertyAttribute.cs
- TdsParserSessionPool.cs
- XmlSchemaSubstitutionGroup.cs
- QuotedStringFormatReader.cs
- PackageRelationship.cs
- ServiceHostingEnvironment.cs
- DbConnectionPoolGroupProviderInfo.cs
- InstanceDataCollectionCollection.cs
- TablePattern.cs
- DataRowView.cs
- GuidelineCollection.cs
- processwaithandle.cs
- M3DUtil.cs
- Calendar.cs
- DataGridViewLayoutData.cs
- DiscoveryClientChannelFactory.cs
- XmlMemberMapping.cs
- OleDbPermission.cs
- StreamGeometry.cs
- SetterBase.cs
- input.cs
- StatusBar.cs
- NamespaceList.cs
- LateBoundBitmapDecoder.cs
- RegexBoyerMoore.cs
- FixedDSBuilder.cs
- SqlGatherConsumedAliases.cs
- FlowLayout.cs
- connectionpool.cs
- SimpleBitVector32.cs
- ChtmlCommandAdapter.cs
- BooleanToVisibilityConverter.cs
- HierarchicalDataBoundControlAdapter.cs
- InternalCache.cs
- ObjectCacheHost.cs
- UIElementPropertyUndoUnit.cs
- GenericWebPart.cs
- NumberSubstitution.cs
- TableLayoutSettings.cs
- X509Certificate2Collection.cs
- HtmlTableCellCollection.cs
- SQLBinaryStorage.cs
- TextProviderWrapper.cs
- SpeakInfo.cs
- SHA512Managed.cs
- MimeXmlReflector.cs
- PrintDialog.cs
- MostlySingletonList.cs
- CheckBoxBaseAdapter.cs
- XsltLibrary.cs
- DirectoryGroupQuery.cs
- BitmapFrameEncode.cs
- PowerStatus.cs
- UnaryExpression.cs
- CodeParameterDeclarationExpression.cs
- ExpressionParser.cs
- QilLoop.cs
- SmtpException.cs
- AppearanceEditorPart.cs
- BufferedOutputStream.cs
- RegisteredDisposeScript.cs
- UpdatePanelTriggerCollection.cs
- ImageClickEventArgs.cs
- ExpandCollapsePatternIdentifiers.cs
- DebugHandleTracker.cs
- XmlSchemaGroup.cs
- ScrollContentPresenter.cs
- SQLInt16Storage.cs
- NamespaceQuery.cs
- CellConstant.cs
- DirectoryNotFoundException.cs
- SchemaEntity.cs
- RowsCopiedEventArgs.cs
- X509Certificate2Collection.cs
- CollectionViewGroupRoot.cs
- BmpBitmapEncoder.cs
- Size3DValueSerializer.cs
- KeyboardDevice.cs
- TypeFieldSchema.cs
- FormsAuthenticationModule.cs
- AnnotationResource.cs
- BinaryObjectWriter.cs
- EnvelopedPkcs7.cs
- Int64KeyFrameCollection.cs
- DesignerSerializerAttribute.cs
- ExceptionUtil.cs
- Queue.cs
- ContentTextAutomationPeer.cs
- BitmapDecoder.cs
- Hash.cs
- SelectedCellsChangedEventArgs.cs
- HttpHandlersSection.cs
- DynamicRenderer.cs
- MediaContext.cs
- HotCommands.cs
- ClientSponsor.cs