Windows Phone 应用程序栏文本框

问题描述:

我想知道是否可以在应用程序栏区域中添加一个文本框(与 Internet Explorer 相同),但我没有找到任何关于此的信息来源.您知道如何完成这项任务吗?

I was wondering, if it is somehow possible to add a TextBox in the Application Bar area (the same way the Internet Explorer does), but I didn't find any information source about this. Have you any idea, how to accomplish this task?

您将无法在 ApplicationBar 中添加 UIElements,因为它不是从 UIElement 派生的.

You will not be able to add UIElements inside ApplicationBar as it is not derived from UIElement.

或者,您可以尝试在屏幕底部添加一个 Grid 并将其着色为类似于 ApplicationBar.然后在 Grid 中添加一个 TextBlock.这只是一种解决方法,不建议使用,因为它不符合标准.

Alternatively, you can try adding a Grid at the bottom of the screen and color it similar to the ApplicationBar. Then add a TextBlock inside the Grid. This is just a workaround and not recommended as it is not according to the standards.

您还可以查看以下链接:http://www.maxpaulousky.com/blog/archive/2011/01/10/bindable-application-bar-extensions-for-windows-phone-7.aspx

You can also check the following link: http://www.maxpaulousky.com/blog/archive/2011/01/10/bindable-application-bar-extensions-for-windows-phone-7.aspx