Intersoft.Client.UI.Controls.Interactivity Namespace > DragDropBehavior Class : TooltipText Property |
<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); }
Each DragEffect comes with predefined tooltip image and text that indicates the drag action.
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> |
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