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
- GestureRecognitionResult.cs
- HttpConfigurationSystem.cs
- HttpProfileGroupBase.cs
- XmlDocumentFragment.cs
- LinkUtilities.cs
- ClickablePoint.cs
- DataBoundControlAdapter.cs
- SignatureToken.cs
- XsltCompileContext.cs
- Configuration.cs
- ActivityCodeDomSerializer.cs
- TaskSchedulerException.cs
- MDIControlStrip.cs
- ColumnMapCopier.cs
- XmlCharacterData.cs
- ResXResourceWriter.cs
- Listbox.cs
- CodeDelegateInvokeExpression.cs
- MatrixCamera.cs
- XmlSerializationGeneratedCode.cs
- InvalidPrinterException.cs
- CodeLabeledStatement.cs
- XmlRootAttribute.cs
- SemanticResolver.cs
- SafeCryptoHandles.cs
- CookieParameter.cs
- RowToFieldTransformer.cs
- Facet.cs
- Freezable.cs
- FixedPage.cs
- TypeConstant.cs
- ErrorRuntimeConfig.cs
- DataGridBoolColumn.cs
- ResXFileRef.cs
- ADConnectionHelper.cs
- InternalResources.cs
- Button.cs
- SafeNativeMethods.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlEncoding.cs
- HttpBrowserCapabilitiesWrapper.cs
- UnicodeEncoding.cs
- RawTextInputReport.cs
- BindingSource.cs
- CqlParserHelpers.cs
- X509ChainPolicy.cs
- PersianCalendar.cs
- WhitespaceRuleReader.cs
- ConfigXmlReader.cs
- DriveNotFoundException.cs
- SetMemberBinder.cs
- PersianCalendar.cs
- OptionalRstParameters.cs
- StrongNameKeyPair.cs
- EncoderParameter.cs
- CodeCatchClauseCollection.cs
- ViewGenerator.cs
- ResourcesBuildProvider.cs
- ErrorItem.cs
- ProtocolsSection.cs
- WindowsListViewGroup.cs
- SessionPageStateSection.cs
- Button.cs
- SystemEvents.cs
- ParameterBuilder.cs
- UTF32Encoding.cs
- StringFreezingAttribute.cs
- PropertyRef.cs
- TreeViewHitTestInfo.cs
- Calendar.cs
- DefaultSettingsSection.cs
- UserNameSecurityTokenAuthenticator.cs
- DropShadowBitmapEffect.cs
- ContextMenu.cs
- AsyncContentLoadedEventArgs.cs
- GridViewRowPresenter.cs
- _ServiceNameStore.cs
- ResourceCategoryAttribute.cs
- JsonObjectDataContract.cs
- ScriptServiceAttribute.cs
- TypeBuilder.cs
- NavigationService.cs
- TriggerActionCollection.cs
- NameValueConfigurationCollection.cs
- CompiledRegexRunner.cs
- PartialClassGenerationTaskInternal.cs
- XmlReflectionMember.cs
- versioninfo.cs
- ReadContentAsBinaryHelper.cs
- CustomValidator.cs
- WinInetCache.cs
- PropertyMapper.cs
- ListBoxItem.cs
- KeyFrames.cs
- ScriptingProfileServiceSection.cs
- UInt16.cs
- PropertyManager.cs
- SQLMoneyStorage.cs
- CreateUserErrorEventArgs.cs
- IntegerValidatorAttribute.cs