Intersoft ClientUI Documentation
TooltipIcon Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > DropTargetBehavior Class : TooltipIcon Property






Gets or sets the icon of the tooltip.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Tooltip")>
Public Property TooltipIcon As ImageSource
Visual Basic (Usage)Copy Code
Dim instance As DropTargetBehavior
Dim value As ImageSource
 
instance.TooltipIcon = value
 
value = instance.TooltipIcon
C# 
[CategoryAttribute("Tooltip")]
public ImageSource TooltipIcon {get; set;}
Delphi 
public read-write property TooltipIcon: ImageSource; 
JScript 
CategoryAttribute("Tooltip")
public function get,set TooltipIcon : ImageSource
Managed Extensions for C++ 
[CategoryAttribute("Tooltip")]
public: __property ImageSource* get_TooltipIcon();
public: __property void set_TooltipIcon( 
   ImageSource* value
);
C++/CLI 
[CategoryAttribute("Tooltip")]
public:
property ImageSource^ TooltipIcon {
   ImageSource^ get();
   void set (    ImageSource^ 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.