ToolTip in WPF

This is a simple example of ToolTip with Button Control

<Button Content="Submit" ToolTipService.ShowDuration="1000" Height="23" HorizontalAlignment="Left" Margin="10,12,0,0"  VerticalAlignment="Top" Width="75">
            <Button.ToolTip>
                <ToolTip >
                    <StackPanel>
                        <TextBlock FontWeight="Bold">Submit the Content About ASP.net</TextBlock>
                        <TextBlock>Submits the content and complete the action for the given form.</TextBlock>
                    </StackPanel>
                    
                </ToolTip>
            </Button.ToolTip>

        </Button>

WPF Tooltip.png

Here we use ToolTipService.ShowDuration="1000" to set the display time of the ToolTip.
        
Ebook Download
View all
Learn
View all