我怎么可以显示在一个文本框,一个气球提示? [英] How can I show a Balloon Tip over a textbox?
问题描述
我在使用XAML和MVVM一个C#WPF应用程序。我的问题是:我如何可以显示上述用户输入一些无效数据的文本框中输入一个气球工具提示
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 to use Microsoft's native balloon control for this. How would I implement this into my application?
推荐答案
我一直在寻找比BalloonDecorator一个更好的解决方案,并在跑 http://www.hardcodet.net/projects/wpf-notifyicon 项目。它使用的最低水平WinAPI的,这可能给你构建自己的解决方案,一个良好的开端。看来,第一眼可能会解决这个问题,但我还没有足够的时间来验证BalloonTip可做成你所描述的行为。
I've been searching for a better solution than the BalloonDecorator, and ran across the http://www.hardcodet.net/projects/wpf-notifyicon project. It is using the WinAPI at the lowest level, which might give you a head start on building your own solution. It appears that at first glance it could potentially solve it, but I haven't had enough time to verify that the BalloonTip can be made to behave as you've described.
你的项目好运气!
这篇关于我怎么可以显示在一个文本框,一个气球提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!