Compartilhar via


IXRControl::GetTemplate (Compact 2013)

3/28/2014

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 XAML for Windows Embedded XAML markup by using the <ControlTemplate> markup element. When the XAML 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

See Also

Reference

IXRControl
IXRControl::SetTemplate