How can I make in XAML WinUI 3 a circled "i" which on hover opens a TeachingTip? Like in the photo:
<TeachingTip Title="Title" Subtitle="Subtitle" Target="{x:Bind InformationIcon}"/>
Attempts:
<FontIcon>
inside <Border>
, but they do not have click events so I can't open the tip in code-behind.<Button>
with the icon then I can open the tip. But it has hover animation and is not a circle, and all I want is a static "i" encircled.You can use the standard tooltip, something like that:
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" Text="Tags (optional)" />
<TextBlock
Margin="10,0,0,0"
VerticalAlignment="Center"
FontSize="20"
Text="🛈" ToolTipService.Placement="Bottom">
<ToolTipService.ToolTip>
<Border Margin="-10" Background="Black">
<TextBlock
Margin="10"
Foreground="White"
Text="Tags are not visible account-wide Do not include sensitive data."
TextWrapping="Wrap" />
</Border>
</ToolTipService.ToolTip>
</TextBlock>
</StackPanel>
However the tooltip has less features than the WPF one, so there's no way to configure delays.