Intersoft ClientUI Documentation
TooltipText Property (DragDropBehavior)



Gets or sets the text of the tooltip.
Syntax
<CategoryAttribute("Tooltip")>
Public Property TooltipText As String
Dim instance As DragDropBehavior
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

Each DragEffect comes with predefined tooltip image and text that indicates the drag action.

  • DragEffect = Copy, shows copy icon and "Copy" tooltip
  • DragEffect = Link, shows link icon and "Link" tooltip
  • DragEffect = Move, shows move icon and "Move" tooltip
  • DragEffect = Space, shows move icon and "Move" tooltip
Example

You can customize the tooltip by modifying the TooltipIcon and TooltipText properties as shown below.

Sample Code
Copy Code
<Border Height="116" Width="100">
    <i:Interaction.Behaviors>
    <Intersoft:DragDropBehavior TooltipIcon="cursor_link.png" 
                                TooltipText="Link"/>
    </i:Interaction.Behaviors>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Image Source="folder2.png"/>
        <TextBlock Grid.Row="1" Text="My Archive" HorizontalAlignment="Center"/>
    </Grid>
</Border>
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

DragDropBehavior Class
DragDropBehavior Members

Concepts

Drag-drop Framework Overview

Send Feedback