Skip to content

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

cs
public class Poptip : AdornerElement

Attributes

PropertyDescriptionDefault ValueRemarks
HitModeTrigger ModeHitMode.Hover
ContentReminder content
ContentTemplatePrompt content template
ContentStringFormatPrompt content text format
ContentTemplateSelectorPrompt Content Template Selector
VerticalOffsetOffset0
HorizontalOffsetOffset0
PlacementTypePlacementType.Top
IsOpenWhether to openfalse
Delay1000.0

Case

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

PopTip

Released under the MIT License.