开发者

WP7: Creating a non-network toast-like message inside an App?

开发者 https://www.devze.com 2023-02-17 02:16 出处:网络
Okay so the title might sound a bit confusing, but here\'s what I want to do: In the app im developing, I want to display a message to the user when he clicks a button, and then hide the message again

Okay so the title might sound a bit confusing, but here's what I want to do: In the app im developing, I want to display a message to the user when he clicks a button, and then hide the message again shortly hereaf开发者_运维技巧ter - Just like a toast message in Android.

At the moment I use a MessageBox, but the fact that the user has to press an OK button to hide it again is anoying, so I was hoping there would be a way around this?


You can use the ToastRequestTrigger from the Silverlight Toolkit as described in the patterns & practices WP7 Developer Guide to display non-network toast messages. The Coding4Fun Library also provides a ToastPrompt class, which performs the ssame function.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号