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
- XmlLanguage.cs
- ContainerUtilities.cs
- InkPresenterAutomationPeer.cs
- ContentPathSegment.cs
- DataGridViewTopLeftHeaderCell.cs
- FieldMetadata.cs
- CatalogPart.cs
- SimpleWebHandlerParser.cs
- IPEndPointCollection.cs
- XmlSchemaDocumentation.cs
- DataGridViewCellStyleEditor.cs
- Point3DAnimation.cs
- OleDbParameter.cs
- HttpHostedTransportConfiguration.cs
- AutomationPatternInfo.cs
- WindowsIdentity.cs
- NavigationExpr.cs
- QueryContinueDragEventArgs.cs
- TypeBinaryExpression.cs
- DataErrorValidationRule.cs
- AnalyzedTree.cs
- followingquery.cs
- ButtonFieldBase.cs
- StateFinalizationActivity.cs
- VisualStyleElement.cs
- IdnMapping.cs
- RoleExceptions.cs
- _CommandStream.cs
- EntitySetBase.cs
- ChtmlPhoneCallAdapter.cs
- OracleTimeSpan.cs
- CompilerScope.Storage.cs
- MachineSettingsSection.cs
- PropertyNames.cs
- WebChannelFactory.cs
- Unit.cs
- BindingMAnagerBase.cs
- ColorTranslator.cs
- _ListenerAsyncResult.cs
- ISFClipboardData.cs
- AnonymousIdentificationSection.cs
- SafeSystemMetrics.cs
- RightsManagementEncryptedStream.cs
- assemblycache.cs
- httpapplicationstate.cs
- Menu.cs
- HtmlTable.cs
- ChangesetResponse.cs
- XhtmlBasicImageAdapter.cs
- diagnosticsswitches.cs
- CodeMethodMap.cs
- CreateParams.cs
- OpenFileDialog.cs
- VBCodeProvider.cs
- ProviderCommandInfoUtils.cs
- Calendar.cs
- TrackingValidationObjectDictionary.cs
- TemplateAction.cs
- XmlElement.cs
- DbParameterHelper.cs
- DictionaryGlobals.cs
- ClientRuntimeConfig.cs
- serverconfig.cs
- DataSourceView.cs
- TextBoxAutoCompleteSourceConverter.cs
- DBConcurrencyException.cs
- xmlsaver.cs
- MediaPlayer.cs
- XmlSchemaComplexType.cs
- XamlRtfConverter.cs
- TypeGeneratedEventArgs.cs
- BrushMappingModeValidation.cs
- ModelItemCollection.cs
- OleDbConnectionFactory.cs
- DbDataAdapter.cs
- BasicKeyConstraint.cs
- SqlCacheDependencyDatabaseCollection.cs
- SkewTransform.cs
- SharedConnectionWorkflowTransactionService.cs
- XmlNullResolver.cs
- EncryptedKey.cs
- Exceptions.cs
- RadioButtonFlatAdapter.cs
- InvalidContentTypeException.cs
- EntitySqlQueryCacheKey.cs
- LOSFormatter.cs
- SystemIPInterfaceProperties.cs
- GridViewUpdateEventArgs.cs
- TextAutomationPeer.cs
- SymbolEqualComparer.cs
- RequestTimeoutManager.cs
- ListCommandEventArgs.cs
- ZipIOBlockManager.cs
- Invariant.cs
- XmlTypeAttribute.cs
- DataTable.cs
- WindowsIPAddress.cs
- ProcessModelSection.cs
- WorkflowDesignerMessageFilter.cs
- ChtmlLinkAdapter.cs