2
어떻게하면 다음 코드로 툴팁을 빠르게 표시 할 수 있습니까?ToolTipService.Duration을 사용하여 WPF ToolTip을 더 빠르게 표시하려면 어떻게합니까?
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace TestHover29282
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
TextBlock tb = new TextBlock();
tb.Text = "Jim Smith";
ToolTip tt = new ToolTip();
tt.Content = "This is some info on the customer.";
tb.ToolTip = tt;
//ToolTipService tts = new ToolTipService();
//tts.Duration = 0;
//tb.ToolTipService = tts;
MainStackPanel.Children.Add(tb);
}
}
}