Export (0) Print
Expand All

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)

type IViewAutomationPeer =  interface end

The IViewAutomationPeer type exposes the following members.

  NameDescription
Public methodCreateItemAutomationPeerCreates a new instance of the ItemAutomationPeer class.
Public methodGetAutomationControlTypeGets the control type for the element that is associated with this IViewAutomationPeer.
Public methodGetChildrenGets the collection of immediate child elements of the specified UI Automation peer.
Public methodGetPatternGets the control pattern that is associated with the specified patternInterface.
Public methodItemsChangedCalled by ListView when the collection of items changes.
Public methodViewDetachedCalled when the custom view is no longer applied to the ListView.
Top

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft