WPF工具提示

WPF为工具提示提供了一个灵活的模型,因为WPF中工具提示是内容控件,所以可在工具提示中放置任何可视化元素,还可改变各种时间设置来控制工具提示的显示和隐藏速度.

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Button ToolTip="btn text">btn</Button>
    </Grid>
</Window>