CreateCustomEvent<ArgType,SenderType> (Compact 7)
3/12/2014
This function creates an event that signals a change in a custom property value.
Syntax
template <typename ArgType, typename SenderType>
IXRCustomEvent<ArgType, SenderType>* CreateCustomEvent()
Parameters
None.
Template Parameters
Template Parameter | Description |
---|---|
ArgType |
Event data structure that the event will use (for example, XRPropertyChangedCustomEventArgs). |
SenderType |
Object sender that raises the event (for example, IXRPropertyBag for data-source objects). |
Return Value
Returns an IXRCustomEvent object that represents the newly created event.
Remarks
Use this helper function to create a property-changed event for a property of a custom data-source object.
Raise this event in your implementation of the property's Set* method, in the data-source object that inherits from IXRPropertyBag.
Call IUnknown::Release on the returned IXRCustomEvent object after you are done using it.
.NET Framework Equivalent
None.
Requirements
Header |
XRCustomEvent.h |
sysgen |
SYSGEN_XAML_RUNTIME |
See Also
Reference
Silverlight for Windows Embedded Functions
XRPropertyChangedCustomEventArgs
IXRPropertyBag