Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase ToolTip display time?

I have one GridView, in its RowDataBound Event, I am assigning ToolTip as below:

protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
    try
    {
        if (gv.HeaderRow != null && e.Row.RowType == DataControlRowType.DataRow)
        {  
            e.Row.ToolTip = "Remarks: " + ((Label)e.Row.FindControl("lblRemarks")).Text;
        }
    }
    catch (Exception ex)
    {
        BussinessLayer.RIBOException.Instance.HandleMe(this, ex);
    }
}

Here, I want to extend the display time of the ToolTip. How to do this?

like image 635
thevan Avatar asked Aug 18 '12 05:08

thevan


3 Answers

<Button x:Name="btnHelp" ToolTip="For new paragraph : press Enter &#x0a;For new line : press Shift+Enter">
 <ToolTipService.ShowDuration>15000</ToolTipService.ShowDuration>
</Button>
like image 152
M Komaei Avatar answered Nov 12 '22 20:11

M Komaei


Set the ToolTipService.ShowDuration property.

like image 30
Hassan Boutougha Avatar answered Nov 12 '22 18:11

Hassan Boutougha


You need to use the ToolTipService and specifically the ShowDuration attached property.

You should be able to do the following after you set the tooltip:

ToolTipService.ShowDuration(e.Row, 10000)
like image 6
Brian S Avatar answered Nov 12 '22 18:11

Brian S