Compartilhar via


IXRButtonBase::SetClickMode (Compact 2013)

3/28/2014

This method sets a value that specifies the action that raises the Click event for this button control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetClickMode(
    XRClickMode ClickModeProperty
) = 0;

Parameters

  • ClickModeProperty
    [in] XRClickMode member that specifies the action that raises the Click event for this button control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can use this method to set the user interaction that is required to raise a Click event. When the click mode for the button is XRClickMode_Hover, the Click event cannot be raised by using the keyboard.

.NET Framework Equivalent

System.Windows.Controls.Primitives.ButtonBase.ClickMode

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRButtonBase
IXRButtonBase::GetClickMode