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
- OLEDB_Util.cs
- SafeHandles.cs
- ReferencedType.cs
- FormViewActionList.cs
- HwndSource.cs
- BoundsDrawingContextWalker.cs
- ConnectionProviderAttribute.cs
- Double.cs
- XmlBufferReader.cs
- ArrayListCollectionBase.cs
- BamlResourceContent.cs
- WSFederationHttpBindingCollectionElement.cs
- ThreadSafeMessageFilterTable.cs
- DecimalAverageAggregationOperator.cs
- LogExtent.cs
- RecordConverter.cs
- ConsumerConnectionPointCollection.cs
- ItemList.cs
- TextRangeBase.cs
- PerformanceCounterPermission.cs
- CompilerWrapper.cs
- CustomAttributeSerializer.cs
- Stroke.cs
- QilCloneVisitor.cs
- XmlSchemaParticle.cs
- SynchronizedInputHelper.cs
- RootNamespaceAttribute.cs
- XmlNullResolver.cs
- ToolStripContainer.cs
- EventArgs.cs
- ScriptingRoleServiceSection.cs
- HtmlShimManager.cs
- GeometryGroup.cs
- Run.cs
- EntityModelBuildProvider.cs
- SqlProvider.cs
- XpsFilter.cs
- CroppedBitmap.cs
- ConfigXmlAttribute.cs
- CompleteWizardStep.cs
- TextSegment.cs
- UTF8Encoding.cs
- WindowsGraphicsWrapper.cs
- TraceProvider.cs
- ProtocolsSection.cs
- HttpModulesSection.cs
- GcSettings.cs
- DeleteMemberBinder.cs
- _RequestLifetimeSetter.cs
- CurrentTimeZone.cs
- CompositeKey.cs
- TrackingMemoryStreamFactory.cs
- CodePageEncoding.cs
- RepeatButtonAutomationPeer.cs
- WebOperationContext.cs
- GcHandle.cs
- FlowchartStart.xaml.cs
- BitmapSourceSafeMILHandle.cs
- PointLightBase.cs
- MenuItem.cs
- DefaultTraceListener.cs
- EFTableProvider.cs
- File.cs
- XmlSchemaParticle.cs
- DataGridViewRowPrePaintEventArgs.cs
- BinaryParser.cs
- TextCollapsingProperties.cs
- AssociationTypeEmitter.cs
- AspCompat.cs
- DoubleAnimationClockResource.cs
- WsdlImporter.cs
- FrameworkContentElement.cs
- DoWorkEventArgs.cs
- XmlSerializerVersionAttribute.cs
- DataKeyArray.cs
- AtomParser.cs
- MultiDataTrigger.cs
- CodeGeneratorOptions.cs
- StrokeCollection.cs
- DataSourceControl.cs
- DesignerCapabilities.cs
- Object.cs
- EditorPartCollection.cs
- dsa.cs
- XmlSchemaSimpleTypeList.cs
- UntrustedRecipientException.cs
- TrustVersion.cs
- ClosableStream.cs
- SettingsProperty.cs
- RunWorkerCompletedEventArgs.cs
- WebServiceErrorEvent.cs
- SiteMapHierarchicalDataSourceView.cs
- ActiveXContainer.cs
- ScrollBar.cs
- SymbolMethod.cs
- TransactionContextValidator.cs
- LayoutSettings.cs
- ModifierKeysValueSerializer.cs
- InteropBitmapSource.cs
- MaskDescriptor.cs