Windows Phone 7 中消息框中的文本框
是否可以在 Windows Phone 7 中的 MessageBox 顶部插入一个 TextBox 供用户输入文本?
谢谢。
Is it possible to insert a TextBox for the user to input text on top of a MessageBox in Windows Phone 7?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不 - 不是
,但是 http://coding4fun.codeplex.com/ 中的“输入提示”可能帮助你。请参阅 http://www.windowsphonegeek .com/articles/Coding4Fun-Toolkit-for-WP7-概述和入门
No - it isn't
But the "Input Prompt" in http://coding4fun.codeplex.com/ might help you. See the overview at http://www.windowsphonegeek.com/articles/Coding4Fun-Toolkit-for-WP7-Overview-and-Getting-Started
我已经使用“输入提示”来处理与此类似的情况,并且没有遇到任何问题。这应该按照斯图尔特的建议进行。斯图尔特也说得对,目前这是不可能的。
您可能还想查看 Telerik 控件,RadWindow for WP7具体应该很好地解决问题。唯一的问题是这些是商业性的,所以你必须购买许可证。
但如果你想从头开始创建自己的,我观看了一个视频,“创建自定义弹出窗口",位于 silverlight.net,可以帮助您很好地入门。基本上,它为您提供“弹出窗口”,您可以在其中添加所需的任何其他控件。
请记住,所有这些解决方案都可以进行样式设置和定位,以“模仿”您想要的消息框的外观和感觉。希望这有帮助。
I've used the "Input Prompt" for a situation similar to this and I had no problems. This should work as suggested by Stuart. Also Stuart is right that this is NOT possible at this time.
You might also want to check out Telerik controls, RadWindow for WP7 to be specific should address the problem nicely. Only thing is that these are commercial so you'll have to purchase a license.
But if you want to create your own from scratch I watched a video, "Creating a Custom Popup", on silverlight.net that can get you started nicely. Basically it gives you the "pop up" and you can add any other controls you need inside of it.
Bear in mind all these solutions can be styled and positioned to "imitate" the look and feel of a messagebox like you wanted. Hope this helps.
这在本机 MessageBox 中是不可能的。您可以尝试前面提到的 Coding4Fun 库。
另一种解决方案是 InputPrompt,可以在 Telerik 中找到图书馆(不过你必须为此付费)。
This is not possible in native MessageBox. You can try Coding4Fun library as mentioned before.
An alternative solution is the InputPrompt which can be found in Telerik library (you will have to pay for this one though).