Ghost1372

everything can be handy

PopTip

It is often used to display the prompt information when the mouse is hovered.

1
public class Poptip : AdornerElement

Attributes

Property Description Default Value Remarks
HitMode Trigger Mode HitMode.Hover
Content Reminder content
ContentTemplate Prompt content template
ContentStringFormat Prompt content text format
ContentTemplateSelector Prompt Content Template Selector
VerticalOffset Offset 0
HorizontalOffset Offset 0
PlacementType PlacementType.Top
IsOpen Whether to open false
Delay 1000.0

Case

1
2
3
4
5
<Button>
<hc:Poptip.Instance>
<hc:Poptip Content="Text" PlacementType="TopLeft"/>
</hc:Poptip.Instance>
</Button>
1
<ToggleButton hc:Poptip.HitMode="None" hc:Poptip.IsOpen="{Binding IsChecked,RelativeSource={RelativeSource Self}}" hc:Poptip.Content="Text" hc:Poptip.Placement="RightTop"/>

PopTip

0%