Compartir a través de


IXRStyle::GetTargetType (Compact 2013)

3/28/2014

This method retrieves the type of object for which this style is intended.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetTargetType(
    __out IID* pIID
) = 0;

Parameters

  • pIID
    [out] Pointer to the interface identifier (IID) of the object type for which this style is intended.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you create an IXRStyle object, you must set the type by calling IXRStyle::SetTargetType. If you do not, an exception is thrown.

You can set a style on any object that derives from IXRFrameworkElement. Therefore, the target type can be an IID for any of those derived objects.

The IID returned in pIID is the name of an object that inherits from IXRFrameworkElement, prefixed with the substring "IID_". For example, IID_ListBoxItem.

.NET Framework Equivalent

System.Windows.Style.TargetType

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRStyle
IXRStyle::SetTargetType