IViewAutomationPeer Interface
TOC
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

NameDescription
System_CAPS_pubmethodCreateItemAutomationPeer(Object^)

Creates a new instance of the ItemAutomationPeer class.

System_CAPS_pubmethodGetAutomationControlType()

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

System_CAPS_pubmethodGetChildren(List<AutomationPeer^>^)

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

System_CAPS_pubmethodGetPattern(PatternInterface)

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

System_CAPS_pubmethodItemsChanged(NotifyCollectionChangedEventArgs^)

Called by ListView when the collection of items changes.

System_CAPS_pubmethodViewDetached()

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
Show:
© 2016 Microsoft