Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / GridViewHeaderRowPresenterAutomationPeer.cs / 1 / 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 = new List (list.Count); if (list != null && list.Count > 0) { //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
- ObjectPropertyMapping.cs
- FacetChecker.cs
- DesigntimeLicenseContext.cs
- StructureChangedEventArgs.cs
- GeneralTransform3D.cs
- WebBrowser.cs
- WebAdminConfigurationHelper.cs
- EventArgs.cs
- AppDomainShutdownMonitor.cs
- Executor.cs
- ObjectMemberMapping.cs
- RelationshipEntry.cs
- CmsInterop.cs
- Brush.cs
- OleDbFactory.cs
- UniqueContractNameValidationBehavior.cs
- ReflectEventDescriptor.cs
- Control.cs
- MexNamedPipeBindingElement.cs
- KeyTimeConverter.cs
- SqlDataSource.cs
- BinaryUtilClasses.cs
- NamedPermissionSet.cs
- SynthesizerStateChangedEventArgs.cs
- GenericXmlSecurityToken.cs
- RadioButton.cs
- AssertHelper.cs
- SqlAliaser.cs
- DateTimeConverter.cs
- View.cs
- XXXOnTypeBuilderInstantiation.cs
- ExtentKey.cs
- PanelStyle.cs
- SiteMapPath.cs
- TemplateBindingExtension.cs
- DataGridTextBox.cs
- WorkflowServiceInstance.cs
- DataGridCaption.cs
- CompositeCollectionView.cs
- FrameAutomationPeer.cs
- ZipIOFileItemStream.cs
- ImmutableCollection.cs
- ChtmlCommandAdapter.cs
- AmbientValueAttribute.cs
- DesignerActionPanel.cs
- BuildProviderCollection.cs
- EditorPartChrome.cs
- BindToObject.cs
- SqlVisitor.cs
- GeometryDrawing.cs
- CustomExpression.cs
- FontWeights.cs
- TemplateBindingExpression.cs
- Graphics.cs
- GeneralTransform.cs
- PublisherIdentityPermission.cs
- NamespaceDisplay.xaml.cs
- WsrmFault.cs
- ResourceDescriptionAttribute.cs
- TextCompositionEventArgs.cs
- CategoryNameCollection.cs
- DictionaryManager.cs
- RemoteWebConfigurationHostServer.cs
- Variant.cs
- WindowsAltTab.cs
- AppModelKnownContentFactory.cs
- WebPartEditVerb.cs
- Delegate.cs
- DetailsViewRow.cs
- ClockGroup.cs
- LowerCaseStringConverter.cs
- TabControlEvent.cs
- ExceptionList.cs
- StringUtil.cs
- configsystem.cs
- ConstNode.cs
- UshortList2.cs
- Point3D.cs
- ToolTip.cs
- ResXResourceReader.cs
- Base64Decoder.cs
- XmlQueryOutput.cs
- AttachedPropertiesService.cs
- HuffCodec.cs
- SecurityChannelListener.cs
- PageContent.cs
- KeyPressEvent.cs
- CustomLineCap.cs
- InputLangChangeEvent.cs
- shaperfactoryquerycachekey.cs
- SerializationException.cs
- localization.cs
- MemberBinding.cs
- ConnectionDemuxer.cs
- sqlstateclientmanager.cs
- XmlWellformedWriter.cs
- PointHitTestResult.cs
- DataSvcMapFile.cs
- PeerTransportListenAddressValidatorAttribute.cs
- ImageIndexConverter.cs