如何增加工具提示的显示时间? [英] How to increase ToolTip display time?
本文介绍了如何增加工具提示的显示时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个GridView,在其RowDataBound事件中,我按以下方式分配工具提示:
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);
}
}
在这里,我想延长ToolTip的显示时间.该怎么做?
Here, I want to extend the display time of the ToolTip. How to do this?
推荐答案
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)
这篇关于如何增加工具提示的显示时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文