Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / ListBoxItemAutomationPeer.cs / 1 / ListBoxItemAutomationPeer.cs
using System; using System.Collections; 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.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class ListBoxItemAutomationPeer : SelectorItemAutomationPeer, IScrollItemProvider { /// public ListBoxItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer) : base(owner, selectorAutomationPeer) { } /// override protected string GetClassNameCore() { return "ListBoxItem"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.ListItem; } /// override public object GetPattern(PatternInterface patternInterface) { if (patternInterface == PatternInterface.ScrollItem) { return this; } return base.GetPattern(patternInterface); } void IScrollItemProvider.ScrollIntoView() { ListBox parent = ItemsControlAutomationPeer.Owner as ListBox; if (parent != null) parent.ScrollIntoView(Item); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryObjectInfo.cs
- CaseExpr.cs
- LogicalTreeHelper.cs
- CaseInsensitiveHashCodeProvider.cs
- BorderGapMaskConverter.cs
- WindowHelperService.cs
- LayoutManager.cs
- SmiConnection.cs
- SyndicationPerson.cs
- FilterRepeater.cs
- ProxyGenerator.cs
- DesignerRegionMouseEventArgs.cs
- PropertyCollection.cs
- Variable.cs
- EndEvent.cs
- DetailsView.cs
- EventHandlerList.cs
- GacUtil.cs
- FontDriver.cs
- ConnectionManagementElementCollection.cs
- ZipQueryOperator.cs
- SqlStream.cs
- _UncName.cs
- RelatedCurrencyManager.cs
- AdjustableArrowCap.cs
- XmlNamespaceMappingCollection.cs
- IriParsingElement.cs
- IssuanceLicense.cs
- XmlWriter.cs
- ResourceCategoryAttribute.cs
- TypeUtils.cs
- CFGGrammar.cs
- ByteAnimation.cs
- WrappedDispatcherException.cs
- StatusBarPanelClickEvent.cs
- WebMessageEncodingBindingElement.cs
- _PooledStream.cs
- SuppressIldasmAttribute.cs
- SizeLimitedCache.cs
- ListViewItem.cs
- PathSegmentCollection.cs
- PointLight.cs
- Int16Storage.cs
- ListViewItemEventArgs.cs
- WorkflowDesignerMessageFilter.cs
- ActiveXMessageFormatter.cs
- ProviderConnectionPointCollection.cs
- AtomicFile.cs
- SQLStringStorage.cs
- TextCompositionManager.cs
- DateTimeOffsetAdapter.cs
- PriorityQueue.cs
- ClientBuildManager.cs
- ImpersonateTokenRef.cs
- VisualStyleElement.cs
- GenericPrincipal.cs
- Model3D.cs
- CodeArgumentReferenceExpression.cs
- ManifestResourceInfo.cs
- VerticalAlignConverter.cs
- ProvidePropertyAttribute.cs
- ConfigurationStrings.cs
- Exceptions.cs
- GlyphTypeface.cs
- Accessible.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MissingMemberException.cs
- DirectoryInfo.cs
- NamedElement.cs
- QilGenerator.cs
- SafeFileMappingHandle.cs
- Substitution.cs
- DbParameterCollectionHelper.cs
- SQLInt32Storage.cs
- QuaternionRotation3D.cs
- CompositeCollectionView.cs
- Native.cs
- ConfigurationPropertyCollection.cs
- GrammarBuilderPhrase.cs
- CodeSnippetExpression.cs
- DocComment.cs
- MarginCollapsingState.cs
- KeyNotFoundException.cs
- DesignerOptionService.cs
- ListViewItemCollectionEditor.cs
- SwitchLevelAttribute.cs
- SHA512Managed.cs
- OptimalTextSource.cs
- BaseCollection.cs
- CmsInterop.cs
- ReadOnlyDictionary.cs
- OleStrCAMarshaler.cs
- LeafCellTreeNode.cs
- WindowsListView.cs
- Decimal.cs
- SynchronizedInputHelper.cs
- ToolStripArrowRenderEventArgs.cs
- InputManager.cs
- DesignerOptionService.cs
- StateDesignerConnector.cs