Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / ItemsControlAutomationPeer.cs / 1 / ItemsControlAutomationPeer.cs
using System; using System.Collections; using System.Collections.ObjectModel; 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.Data; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Internal.Hashing.PresentationFramework; // HashHelper using MS.Win32; namespace System.Windows.Automation.Peers { /// public abstract class ItemsControlAutomationPeer : FrameworkElementAutomationPeer { /// protected ItemsControlAutomationPeer(ItemsControl owner): base(owner) {} /// override public object GetPattern(PatternInterface patternInterface) { if(patternInterface == PatternInterface.Scroll) { ItemsControl owner = (ItemsControl)Owner; if(owner.ScrollHost != null) { AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.ScrollHost); if(scrollPeer != null && scrollPeer is IScrollProvider) { scrollPeer.EventsSource = this; return (IScrollProvider)scrollPeer; } } } return base.GetPattern(patternInterface); } /// protected override ListGetChildrenCore() { ItemsControl owner = (ItemsControl)Owner; ItemCollection items = owner.Items; ItemPeersStorage oldChildren = _dataChildren; //cache the old ones for possible reuse _dataChildren = new ItemPeersStorage(); if (owner.IsGrouping) { CollectionView cv = owner.Items.CollectionView; ReadOnlyObservableCollection
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuildResultCache.cs
- MulticastNotSupportedException.cs
- PartialCachingAttribute.cs
- SqlConnectionPoolProviderInfo.cs
- DoubleMinMaxAggregationOperator.cs
- VerbConverter.cs
- HTMLTagNameToTypeMapper.cs
- ClientApiGenerator.cs
- HtmlControl.cs
- Zone.cs
- FileDialogCustomPlace.cs
- TiffBitmapDecoder.cs
- CharKeyFrameCollection.cs
- SettingsAttributeDictionary.cs
- ToolBarButton.cs
- DateTimeValueSerializer.cs
- KerberosSecurityTokenAuthenticator.cs
- AutomationIdentifierGuids.cs
- FontInfo.cs
- InteropBitmapSource.cs
- QilNode.cs
- Point3DCollection.cs
- TextBoxRenderer.cs
- Errors.cs
- SafeSecurityHandles.cs
- SynchronizedInputHelper.cs
- BorderSidesEditor.cs
- DataService.cs
- ControlValuePropertyAttribute.cs
- XmlSchemaChoice.cs
- XmlSubtreeReader.cs
- AssemblySettingAttributes.cs
- RangeValuePattern.cs
- RectAnimationClockResource.cs
- DefaultBinder.cs
- ZipIOLocalFileDataDescriptor.cs
- PropertyKey.cs
- ClaimTypeElement.cs
- RealizationDrawingContextWalker.cs
- User.cs
- XpsFilter.cs
- HttpDebugHandler.cs
- HttpWebRequestElement.cs
- Vector3D.cs
- HuffCodec.cs
- DoubleConverter.cs
- Tag.cs
- WinInet.cs
- Dictionary.cs
- Byte.cs
- TTSEngineTypes.cs
- WebServiceMethodData.cs
- XmlEventCache.cs
- JoinGraph.cs
- AuthorizationRule.cs
- TagPrefixInfo.cs
- RegisteredArrayDeclaration.cs
- AbsoluteQuery.cs
- ScriptModule.cs
- EdmItemCollection.cs
- Baml2006SchemaContext.cs
- XmlDownloadManager.cs
- ObjectListGeneralPage.cs
- JsonReader.cs
- SafeRegistryKey.cs
- SamlConditions.cs
- SqlSelectStatement.cs
- EntityDataSourceQueryBuilder.cs
- SqlServices.cs
- ClientSettingsStore.cs
- SetIterators.cs
- WebScriptServiceHost.cs
- MetadataConversionError.cs
- HTMLTagNameToTypeMapper.cs
- UserControlParser.cs
- TableHeaderCell.cs
- WebPartRestoreVerb.cs
- DispatcherExceptionFilterEventArgs.cs
- RepeaterItemCollection.cs
- ManagedFilter.cs
- ContentFilePart.cs
- WebConfigurationHostFileChange.cs
- XpsSerializationManager.cs
- PropertyBuilder.cs
- OrderingExpression.cs
- Point4DConverter.cs
- UnitControl.cs
- UpdateTracker.cs
- PerfCounterSection.cs
- XsltLoader.cs
- TreeNodeStyle.cs
- StylusPointPropertyInfo.cs
- RtfToXamlLexer.cs
- WebContext.cs
- DesignerActionGlyph.cs
- DynamicILGenerator.cs
- TimerElapsedEvenArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- HtmlInputCheckBox.cs
- ImageList.cs