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
- ArraySet.cs
- TypeDependencyAttribute.cs
- RoleGroupCollection.cs
- COAUTHINFO.cs
- ApplicationDirectory.cs
- TypeNameConverter.cs
- OracleRowUpdatedEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- DBAsyncResult.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DbQueryCommandTree.cs
- parserscommon.cs
- RtfControls.cs
- ApplicationInfo.cs
- Compensate.cs
- DrawingCollection.cs
- VectorValueSerializer.cs
- sqlcontext.cs
- RuleSettings.cs
- NamespaceEmitter.cs
- SignedXmlDebugLog.cs
- DrawingGroupDrawingContext.cs
- FlowDocumentView.cs
- ConsoleKeyInfo.cs
- StoreItemCollection.Loader.cs
- WebEventTraceProvider.cs
- SequentialUshortCollection.cs
- InstanceKey.cs
- Aggregates.cs
- Activity.cs
- CodeBinaryOperatorExpression.cs
- Delay.cs
- ButtonChrome.cs
- AxisAngleRotation3D.cs
- ActiveXSite.cs
- XmlEnumAttribute.cs
- CodeExpressionRuleDeclaration.cs
- SQLMoneyStorage.cs
- autovalidator.cs
- BrowserCapabilitiesFactoryBase.cs
- ScriptManagerProxy.cs
- FormatterConverter.cs
- MimeMultiPart.cs
- WebSysDescriptionAttribute.cs
- DataControlReferenceCollection.cs
- WebPartConnectionsCloseVerb.cs
- EntityCollection.cs
- NullEntityWrapper.cs
- DrawingBrush.cs
- RightsManagementInformation.cs
- DES.cs
- XamlParser.cs
- ellipse.cs
- ListenerAdapter.cs
- XmlHierarchicalDataSourceView.cs
- EventSetterHandlerConverter.cs
- QueueProcessor.cs
- ActivationArguments.cs
- GlyphRunDrawing.cs
- ExpressionHelper.cs
- TreeNodeCollection.cs
- NamedElement.cs
- TickBar.cs
- ListViewItemSelectionChangedEvent.cs
- PathSegment.cs
- AttachedAnnotationChangedEventArgs.cs
- COM2ExtendedTypeConverter.cs
- PeerChannelListener.cs
- PageThemeCodeDomTreeGenerator.cs
- StylusPointProperty.cs
- PasswordTextContainer.cs
- Activator.cs
- SettingsProperty.cs
- SafeCoTaskMem.cs
- SqlDependencyUtils.cs
- TableLayoutSettingsTypeConverter.cs
- TextBoxBase.cs
- ScrollEvent.cs
- PartialToken.cs
- FormViewDeleteEventArgs.cs
- SpecularMaterial.cs
- ComponentResourceManager.cs
- FrugalMap.cs
- XamlDesignerSerializationManager.cs
- FullTextState.cs
- DataRecord.cs
- KeyGestureConverter.cs
- ContentFileHelper.cs
- HelpProvider.cs
- PerformanceCounter.cs
- PolyLineSegment.cs
- TemplateControlBuildProvider.cs
- Subtree.cs
- SerializationStore.cs
- Int16Animation.cs
- Expression.cs
- MethodImplAttribute.cs
- BuilderPropertyEntry.cs
- RoleGroup.cs
- KeyTime.cs