IXRControlTemplate::SetTargetType (Compact 2013)
This method sets the object type to which this control template is applied.
virtual HRESULT STDMETHODCALLTYPE SetTargetType( const IID iid ) = 0;
[in] Interface identifier (IID) of the object type to which this control template is applied.
Returns an HRESULT that indicates success or failure.
You can apply an existing control template to a control that derives from IXRControl by setting the target type as the IID for any of those derived objects.
The IID you specify in iiD is the name of an object that inherits from IXRControl, prefixed with the substring "IID_". For example,
You must call this method before you call IXRControl::SetTemplate on the target control to apply this template.
The controls available in XAML for Windows Embedded each have default control templates set in the generic.xaml source file. You can retrieve the control template set for a control by calling IXRControl::GetTemplate.
After you set the target type and apply the control template, you can add the new control to a collection in the visual tree.
.NET Framework Equivalent