IViewAutomationPeer Interface
Collapse the table of content
Expand the table of content

IViewAutomationPeer Interface


Allows a customized view of a ListView that derives from ViewBase to implement automation peer features that are specific to the custom view.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

public interface class IViewAutomationPeer


Creates a new instance of the ItemAutomationPeer class.


Gets the control type for the element that is associated with this IViewAutomationPeer.


Gets the collection of immediate child elements of the specified UI Automation peer.


Gets the control pattern that is associated with the specified patternInterface.


Called by ListView when the collection of items changes.


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.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft