Share via


IXRToolTip::GetPlacement (Compact 2013)

3/28/2014

This method retrieves the value of the Placement property, which specifies how the tooltip is positioned in relation to the object specified in the PlacementTarget property.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetPlacement(
    __out XRPlacementMode* pPlacement
) = 0;

Parameters

  • pPlacement
    [out] Pointer to an XRPlacementMode enumerated value that represents the position of the tooltip in relation to the parent visual element.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

In XAML for Windows Embedded, tooltips are always placed relative to the mouse cursor position, regardless of the value of the Placement property. Any Placement value other than XRPlacementMode_Mouse is ignored.

If the tooltip does not fit within the bounds of the XAML for Windows Embedded plug-in at the specified placement, it is automatically moved to a location where it fits. If the tooltip is automatically moved, the Placement value for the tooltip is not changed.

.NET Framework Equivalent

System.Windows.Controls.ToolTip.Placement

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRToolTip