Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 2.88 KB

repeatbuttonautomationpeer.md

File metadata and controls

35 lines (24 loc) · 2.88 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Peers.RepeatButtonAutomationPeer
winrt class

Windows.UI.Xaml.Automation.Peers.RepeatButtonAutomationPeer

-description

Exposes RepeatButton types to Microsoft UI Automation.

-remarks

The Windows Runtime RepeatButton class creates a new RepeatButtonAutomationPeer as its OnCreateAutomationPeer definition. RepeatButton is sealed, so the normal scenario of deriving from the RepeatButton class and its existing peer isn't applicable to RepeatButtonAutomationPeer.

Default peer implementation and overrides in RepeatButtonAutomationPeer

RepeatButtonAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

This peer has the immediate base class ButtonBaseAutomationPeer and inherits its behavior other than the overrides indicated above. Notably, GetName returns a string value based on examining the current Content. For more info, see ButtonBaseAutomationPeer.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

-examples

-see-also

RepeatButton, ButtonBaseAutomationPeer, IInvokeProvider, Custom automation peers