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
- IMembershipProvider.cs
- BaseHashHelper.cs
- KeyValueConfigurationCollection.cs
- VisualBrush.cs
- FileClassifier.cs
- MailSettingsSection.cs
- ClientConvert.cs
- DataMemberConverter.cs
- InputScope.cs
- DeploymentSectionCache.cs
- ToolbarAUtomationPeer.cs
- CompiledQueryCacheKey.cs
- Parameter.cs
- MissingMemberException.cs
- PreparingEnlistment.cs
- UIElementHelper.cs
- XPathNodeIterator.cs
- MorphHelper.cs
- PolyLineSegment.cs
- WebPartConnection.cs
- ButtonBaseAdapter.cs
- Parameter.cs
- XslTransform.cs
- ContainerParaClient.cs
- cryptoapiTransform.cs
- ScrollBarRenderer.cs
- ViewValidator.cs
- PropertyDescriptorGridEntry.cs
- activationcontext.cs
- httpserverutility.cs
- SigningDialog.cs
- WebPartConnectionsCancelEventArgs.cs
- Logging.cs
- Selector.cs
- DriveInfo.cs
- JsonDataContract.cs
- TableAutomationPeer.cs
- login.cs
- RC2.cs
- CommandField.cs
- ActivityWithResultWrapper.cs
- HostingEnvironmentSection.cs
- invalidudtexception.cs
- LocalizationComments.cs
- MouseEvent.cs
- PackageDigitalSignature.cs
- ExpressionsCollectionEditor.cs
- AuthenticationException.cs
- CalendarAutoFormat.cs
- ClientOptions.cs
- PixelShader.cs
- XPathQilFactory.cs
- FreezableOperations.cs
- SchemaReference.cs
- DaylightTime.cs
- InputLanguageProfileNotifySink.cs
- HttpContextBase.cs
- DesignOnlyAttribute.cs
- ClientTargetSection.cs
- CatchDesigner.xaml.cs
- TransportOutputChannel.cs
- MouseCaptureWithinProperty.cs
- XmlDocumentFragment.cs
- TransactionTraceIdentifier.cs
- Assert.cs
- Selector.cs
- DocumentPageHost.cs
- QueryCacheKey.cs
- HttpPostServerProtocol.cs
- DefaultExpression.cs
- ObjectDataSource.cs
- InsufficientExecutionStackException.cs
- AuthenticationException.cs
- FunctionNode.cs
- PositiveTimeSpanValidatorAttribute.cs
- SessionStateItemCollection.cs
- IntPtr.cs
- PackWebRequestFactory.cs
- WindowsContainer.cs
- ItemContainerGenerator.cs
- Itemizer.cs
- QilChoice.cs
- SecurityManager.cs
- AnnotationResourceChangedEventArgs.cs
- FirstQueryOperator.cs
- AttachedPropertyMethodSelector.cs
- TemplateControlBuildProvider.cs
- FormViewActionList.cs
- WinCategoryAttribute.cs
- DocumentViewerBase.cs
- ChannelBinding.cs
- Rotation3DKeyFrameCollection.cs
- XmlFormatWriterGenerator.cs
- TimeBoundedCache.cs
- ToolStripDropTargetManager.cs
- NetworkCredential.cs
- SqlClientWrapperSmiStreamChars.cs
- SmtpException.cs
- TableDetailsRow.cs
- EntitySqlQueryState.cs