AutomationPeer.InvalidatePeer Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Triggers recalculation of the main properties of the AutomationPeer and raises the PropertyChanged notification to the automation client if the properties have changed.

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


Public Sub InvalidatePeer
public void InvalidatePeer()


Examples of main properties include IsEnabled and GetName.

Typically, updates and notifications occur automatically after the layout is updated in Windows Phone. (The update occurs in response to the LayoutUpdated event.) However, properties can change even when no rendering changes occur. For example, the visual rendering usually does not change when the values of an element's ItemStatus or Name properties change. Call InvalidatePeer when your code changes properties that do not change the visual state. InvalidatePeer forces re-evaluation of automation properties and raises property change notifications to automation clients.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


AutomationPeer Class

System.Windows.Automation.Peers Namespace