IViewAutomationPeer Interface
.NET Framework (current version)
Allows a customized view of a ListView that derives from ViewBase to implement automation peer features that are specific to the custom view.
Assembly: PresentationFramework (in PresentationFramework.dll)
| Name | Description | |
|---|---|---|
![]() | CreateItemAutomationPeer(Object^) | Creates a new instance of the ItemAutomationPeer class. |
![]() | GetAutomationControlType() | Gets the control type for the element that is associated with this IViewAutomationPeer. |
![]() | GetChildren(List<AutomationPeer^>^) | Gets the collection of immediate child elements of the specified UI Automation peer. |
![]() | GetPattern(PatternInterface) | Gets the control pattern that is associated with the specified patternInterface. |
![]() | ItemsChanged(NotifyCollectionChangedEventArgs^) | Called by ListView when the collection of items changes. |
![]() | ViewDetached() | Called when the custom view is no longer applied to the ListView. |
The following code shows a custom view implementing IViewAutomationPeer in a separate class to handle a button that appears at the top of the ListView control.
.NET Framework
Available since 3.0
Available since 3.0
Show:
