次の方法で共有


IXREventTrigger::SetRoutedEvent (Windows Embedded CE 6.0)

1/6/2010

This method sets the name of the event that initiates the trigger. Only the Loaded event, raised by an IXRFrameworkElement object, can be used with this method.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRoutedEvent(
    const WCHAR* pRoutedEvent
) = 0;

Parameters

  • pRoutedEvent
    [in] Pointer to a string that contains the name of the event that initiates the trigger.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

See Remarks in IXREventTrigger for information about triggers and which events can initiate a trigger.

.NET Framework Equivalent

System.Windows.EventTrigger.RoutedEvent

Requirements

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

See Also

Reference

IXREventTrigger
IXREventTrigger::GetRoutedEvent