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
- SearchForVirtualItemEventArgs.cs
- RuntimeEnvironment.cs
- EventLogPermission.cs
- UnknownWrapper.cs
- KnownIds.cs
- TextStore.cs
- TextEditorTables.cs
- DataControlField.cs
- XmlDictionaryWriter.cs
- ThemeDirectoryCompiler.cs
- LinearGradientBrush.cs
- ScriptMethodAttribute.cs
- DataPagerFieldCollection.cs
- SHA384CryptoServiceProvider.cs
- BinaryMessageFormatter.cs
- _LoggingObject.cs
- XamlPointCollectionSerializer.cs
- StringSorter.cs
- RegionIterator.cs
- Int32RectConverter.cs
- PenContexts.cs
- DiscoveryVersionConverter.cs
- FixedSOMSemanticBox.cs
- ChangeInterceptorAttribute.cs
- ProxyGenerationError.cs
- BindableAttribute.cs
- Int64AnimationBase.cs
- DbDataReader.cs
- documentsequencetextview.cs
- x509store.cs
- RowsCopiedEventArgs.cs
- formatter.cs
- EnumBuilder.cs
- FixedSOMElement.cs
- ListViewInsertedEventArgs.cs
- BitmapCacheBrush.cs
- TableRowGroup.cs
- DBParameter.cs
- TextParagraphProperties.cs
- CacheDict.cs
- DataFieldEditor.cs
- Visitors.cs
- DoubleAnimationUsingKeyFrames.cs
- TypeResolver.cs
- EmptyStringExpandableObjectConverter.cs
- WeakEventManager.cs
- HttpRequestCacheValidator.cs
- DataSvcMapFile.cs
- StackSpiller.Temps.cs
- HashAlgorithm.cs
- WmlControlAdapter.cs
- TypeDescriptionProviderAttribute.cs
- PolyQuadraticBezierSegment.cs
- RegistrationContext.cs
- MultiDataTrigger.cs
- ProxyAttribute.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CustomErrorsSection.cs
- DiscoveryDocumentReference.cs
- HtmlShim.cs
- RemotingServices.cs
- TextBounds.cs
- NavigationProgressEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- SourceFileInfo.cs
- ToolBar.cs
- HwndAppCommandInputProvider.cs
- DataGridViewColumnConverter.cs
- HideDisabledControlAdapter.cs
- ManifestResourceInfo.cs
- ControlHelper.cs
- HtmlElementCollection.cs
- BufferedWebEventProvider.cs
- XsdDataContractImporter.cs
- Delegate.cs
- ReliableSessionElement.cs
- InfoCardKeyedHashAlgorithm.cs
- BuilderPropertyEntry.cs
- AsyncOperation.cs
- DataReceivedEventArgs.cs
- KeyTime.cs
- SimpleModelProvider.cs
- Evidence.cs
- QilUnary.cs
- FileDetails.cs
- InitialServerConnectionReader.cs
- WinCategoryAttribute.cs
- ListenerSessionConnection.cs
- DynamicPropertyReader.cs
- Evaluator.cs
- AsyncPostBackErrorEventArgs.cs
- CodeExporter.cs
- ImageButton.cs
- NamedPipeAppDomainProtocolHandler.cs
- CodeGroup.cs
- TimeSpan.cs
- RegistryKey.cs
- MethodToken.cs
- SoapInteropTypes.cs
- ScriptResourceMapping.cs