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
- ProgressBar.cs
- StateFinalizationActivity.cs
- HtmlInputImage.cs
- MenuItemBindingCollection.cs
- SqlStatistics.cs
- FrameworkPropertyMetadata.cs
- AccessibleObject.cs
- CollectionBuilder.cs
- VectorCollectionConverter.cs
- ToolboxSnapDragDropEventArgs.cs
- Privilege.cs
- DataTableExtensions.cs
- DetailsViewDeletedEventArgs.cs
- HttpResponseMessageProperty.cs
- CrossAppDomainChannel.cs
- SubpageParaClient.cs
- DetailsViewModeEventArgs.cs
- XmlSchemaSimpleContent.cs
- ParameterElement.cs
- ConnectionPoint.cs
- SqlConnectionHelper.cs
- InternalPermissions.cs
- ErrorEventArgs.cs
- EditableTreeList.cs
- Model3DCollection.cs
- OledbConnectionStringbuilder.cs
- Zone.cs
- TemplateNameScope.cs
- DeobfuscatingStream.cs
- FormatterServices.cs
- MoveSizeWinEventHandler.cs
- TemplateXamlParser.cs
- OrderPreservingSpoolingTask.cs
- EntityKey.cs
- BitmapMetadata.cs
- _SslState.cs
- SpellCheck.cs
- ToolBarButton.cs
- GenericTypeParameterConverter.cs
- TerminatorSinks.cs
- Triangle.cs
- WebPermission.cs
- ManualResetEvent.cs
- SchemaCollectionPreprocessor.cs
- Wildcard.cs
- PanelDesigner.cs
- DispatchWrapper.cs
- ApplyTemplatesAction.cs
- RIPEMD160.cs
- Parameter.cs
- PaperSource.cs
- PnrpPermission.cs
- PlanCompiler.cs
- SkipStoryboardToFill.cs
- PolyBezierSegment.cs
- Bidi.cs
- IISUnsafeMethods.cs
- OdbcConnection.cs
- ContextDataSourceView.cs
- IdentityHolder.cs
- XmlSerializerNamespaces.cs
- Wildcard.cs
- MbpInfo.cs
- Stacktrace.cs
- SemaphoreSecurity.cs
- DurationConverter.cs
- ArrayElementGridEntry.cs
- StrongName.cs
- PathSegment.cs
- TextServicesContext.cs
- FormViewUpdatedEventArgs.cs
- Win32.cs
- RunWorkerCompletedEventArgs.cs
- ArraySubsetEnumerator.cs
- Matrix3D.cs
- Command.cs
- InternalConfigHost.cs
- xmlsaver.cs
- ExtendedProperty.cs
- PrincipalPermission.cs
- SerializationStore.cs
- SafeProcessHandle.cs
- GridEntry.cs
- ToolStripSeparator.cs
- GeneralTransformGroup.cs
- CollectionChangeEventArgs.cs
- SendOperation.cs
- DrawingAttributes.cs
- BufferModeSettings.cs
- DesignerCategoryAttribute.cs
- EventLogInformation.cs
- AnnotationObservableCollection.cs
- QueueProcessor.cs
- DataSpaceManager.cs
- XmlFormatMapping.cs
- ExecutedRoutedEventArgs.cs
- ManipulationPivot.cs
- XmlRawWriter.cs
- EmissiveMaterial.cs
- DockPatternIdentifiers.cs