Intersoft ClientUI Documentation
TooltipIcon Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > DragDropBehavior 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 DragDropBehavior
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);
}

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>

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

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.