Set ToolTip Placement, ShowDuration, VerticalOffset

image_pdfimage_print


   
     

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="200" Width="300">
    <StackPanel>
        <Button Height="40" Margin="5" ToolTipService.HorizontalOffset="5cm" 
                ToolTipService.Placement="Relative" 
                ToolTipService.ShowDuration="10000" 
                ToolTipService.VerticalOffset="50px">
            <Button.ToolTip>
                <ToolTip >
                    ToolTip displayed for 10 seconds...
                </ToolTip>
            </Button.ToolTip>
            Button with offset ToolTip
        </Button>
    </StackPanel>
</Window>