IXRCustomUserControlBase::SetPropertyValue (Compact 2013)
3/28/2014
This method sets the value of a dependency property for a custom user control.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetPropertyValue(
DEPENDENCY_PROPERTY_ID dependencyPropertyId,
XRValue* pXRValue
) = 0;
Parameters
dependencyPropertyId
[in] DEPENDENCY_PROPERTY_ID value that indicates the identifier of the dependency property that you want to set a new value for.This identifier is created after you register the dependency property and is returned by the method IXRApplication::RegisterDependencyProperty.
- pXRValue
[in] XRValue object that contains both the type and the new value of the specified dependency property.
Return Value
Returns an HRESULT that indicates success or failure.
Returns XR_E_INVALID_OBJECT if pXRValue is not a XAML for Windows Embedded object.
Remarks
When you implement a method on a custom control that is derived from XRCustomUserControlImpl<Base,IFace>, you can call SetPropertyValue inside the method implementation.
.NET Framework Equivalent
None.
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |
See Also
Reference
IXRCustomUserControlBase
IXRCustomUserControlBase::GetPropertyValue