Intersoft.Client.UI.Controls.Interactivity Namespace > DropTargetBehavior Class : TooltipIcon Property |
<CategoryAttribute("Tooltip")> Public Property TooltipIcon As ImageSource
Dim instance As DropTargetBehavior Dim value As ImageSource instance.TooltipIcon = value value = instance.TooltipIcon
[CategoryAttribute("Tooltip")] public ImageSource TooltipIcon {get; set;}
[CategoryAttribute("Tooltip")] public: property ImageSource^ TooltipIcon { ImageSource^ get(); void set ( ImageSource^ value); }
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.
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