AutomationPeer.IsControlElementCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the peer's behavior when a Microsoft UI Automation client calls IsControlElement or an equivalent Microsoft UI Automation client API.
protected:
virtual bool IsControlElementCore() = IsControlElementCore;
bool IsControlElementCore();
protected virtual bool IsControlElementCore();
function isControlElementCore()
Protected Overridable Function IsControlElementCore () As Boolean
Returns
bool
true if the element is a control; otherwise, false.
Remarks
The standard implementation at the AutomationPeer level returns false. However, FrameworkElementAutomationPeer adds behavior that changes the default to true. Other specific peers also may affect this behavior; for example many peers return different values depending on whether the owner is created from a control template. Test the existing return value in the peer that you are using or overriding and then override that behavior if necessary.