Partager via


IXRButtonBase::GetIsFocused (Windows Embedded CE 6.0)

1/6/2010

This method retrieves a value that indicates whether the button control has the UI focus.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsFocused(
    bool *pClickModeProperty
) = 0;

Parameters

  • pClickModeProperty
    [out] Pointer to a Boolean that indicates whether the button control has the UI focus. This value is true if the control has the focus; otherwise, it is false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The pClickModeProperty value is not set until the event handler for the GotFocus event has been called. This event handler is added in the IXRUIElement inherited class. The GotFocus event can be raised by a successful call to the inherited method IXRControl::Focus.

For more information, see IXRUIElement::AddGotFocusEventHandler.

.NET Framework Equivalent

System.Windows.Controls.Primitives.ButtonBase.IsFocused

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRButtonBase

Other Resources