Intersoft ClientUI Documentation
TooltipText Property (DropTargetBehavior)



Gets or sets the text of the tooltip.
Syntax
<CategoryAttribute("Tooltip")>
Public Property TooltipText As String
Dim instance As DropTargetBehavior
Dim value As String
 
instance.TooltipText = value
 
value = instance.TooltipText
[CategoryAttribute("Tooltip")]
public string TooltipText {get; set;}
[CategoryAttribute("Tooltip")]
public:
property String^ TooltipText {
   String^ get();
   void set (    String^ value);
}
Remarks

You can customize the tooltip text and icon of the drag-drop visual cues when the dragged object is over the drop target. The DropTargetBehavior already has the properties that allow you customize it directly in the form of TooltipIcon and TooltipText as explained in the following code.

Customizing Tooltip
Copy Code
<Grid HorizontalAlignment="Center" Height="100" VerticalAlignment="Center" Width="100" Background="Gray" AllowDrop="True">
    <i:Interaction.Behaviors>
        <Intersoft:DropTargetBehavior AllowDropItem="True" TooltipIcon="accept.png" TooltipText="Drop here."/>
    </i:Interaction.Behaviors>
</Grid>

For the first two approaches, you need to manually change the tooltip text and icon during DragEnter event. To learn more how to handle DragEnter event, see How to: Change tooltip when hovering drop target.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DropTargetBehavior Class
DropTargetBehavior Members

Concepts

Drag-drop Framework Overview

Send Feedback