Share via


IXRToolTip::SetPlacement (Compact 2013)

3/28/2014

This method sets a value that determines how the tooltip should be positioned in relation to the object defined in the PlacementTarget property.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetPlacement(
    __in  XRPlacementMode   Placement
) = 0;

Parameters

  • Placement
    [in] An XRPlacementMode enumerated value that specifies 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. For more details about the automatic repositioning of the tooltip, see XRPlacementMode.

.NET Framework Equivalent

System.Windows.Controls.ToolTip.Placement

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRToolTip
XRPlacementMode