ToolTipService.SetToolTip method

Applies to Windows and Windows Phone

Sets the value of the ToolTipService.ToolTip XAML attached property.

Syntax


public:
static void SetToolTip(
  DependencyObject^ element, 
  Object^ value
)

Parameters

element

Type: DependencyObject

The object to set tooltip content on.

value

Type: System.Object [.NET] | Platform::Object [C++]

The value to set for tooltip content.

Remarks

A ToolTip must be assigned to another UI element that is its owner. In Extensible Application Markup Language (XAML), use the ToolTipService.Tooltip attached property to assign the ToolTip to an owner. In code, use the ToolTipService.SetToolTip method to assign the ToolTip to an owner.

See ToolTipService.ToolTip or ToolTip to learn more about the object content or text that is appropriate to use as tooltip content.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ToolTipService

 

 

Show:
© 2014 Microsoft