Share via


IXRControl::GetTemplate (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the control template that is used to define the appearance of this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetTemplate(
    IXRControlTemplate **ppTemplate
) = 0;

Parameters

  • ppTemplate
    [out] Pointer to an IXRControlTemplate pointer that references a control template.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

A control template can be defined in Silverlight for Windows Embedded XAML markup by using the <ControlTemplate> markup element. When the Silverlight for Windows Embedded XAML is parsed into a visual tree, its IXRControlTemplate equivalent object is accessible in the visual tree and can be retrieved by using this method.

If an IXRControl has an IXRControlTemplate associated with it, the control can appear in your application UI.

.NET Framework Equivalent

System.Windows.Controls.Control.Template

Requirements

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

See Also

Reference

IXRControl
IXRControl::SetTemplate