#859 – Changing the Amount of Time That a ToolTip Is Shown For
July 9, 2013 1 Comment
By default, a ToolTip will be displayed for 5 seconds before automatically disappearing. To change this value, set the ToolTipService.ShowDuration property on the element to which the tooltip is attached.
In the example below, we change our tooltip to only stay displayed for 2 seconds (2000 milliseconds).
<Button Content="Read a Book" Padding="10,5" HorizontalAlignment="Center" ToolTipService.ShowDuration="2000"> <Button.ToolTip> <ToolTip > <StackPanel> <TextBlock Text="Reading Suggestion" FontWeight="Bold"/> <TextBlock Text="Charles Dickens" Margin="5"/> </StackPanel> </ToolTip> </Button.ToolTip> </Button>
Pingback: Dew Drop – July 9, 2013 (#1,581) | Alvin Ashcraft's Morning Dew