WPF Popup Popup

I need to display a popup. Does WPF have a control for this kind of work? Something like the following:

<BalloonPopup> <StackPanel> <Button/> . . . </StackPanel> </BalloonPopup> 

This is a possible result:

enter image description here

+4
source share
2 answers

You want to make tooltip . wpf.200things has an excellent record on it.

From this article. Basically you will create a tooltip as shown below.

 <TextBox Text="Now is the winter of our discontent etc" Width="100" Margin="10"> <TextBox.ToolTip> <ToolTip DataContext="{Binding Path=PlacementTarget, RelativeSource={x:Static RelativeSource.Self}}"> <StackPanel> <Label FontWeight="Bold" Content="Full Text"/> <Label Content="{Binding Text}"/> <Label Content="--Gloster, in Richard III (Act I, Scene I)"/> </StackPanel> </ToolTip> </TextBox.ToolTip> </TextBox> 
+1
source

I don’t know if you saw this, but here you can find some good examples that helped me in the same situation.

How to implement a balloon message in a WPF application

+1
source

Source: https://habr.com/ru/post/1435104/


All Articles