How can I show a Balloon Tip over a textbox?

后端 未结 4 1450
情话喂你
情话喂你 2020-12-24 15:28

I have a C# WPF application using XAML and MVVM. My question is: How can I show a balloon tooltip above a text box for some invalid data entered by the user?

I want

4条回答
  •  醉酒成梦
    2020-12-24 16:11

    Maybe you can host a Windows Forms control in WPF using the WindowsFormsHost type.

    There is a walkthrough available on MSDN on how to do this:

    Hosting a Windows Forms Composite Control in WPF

    Using this technique you could perhaps use the System.Windows.Forms.ToolTip control. If you set this control's IsBalloon property to true it will display as a balloon window.

提交回复
热议问题