WP7 - 应用程序栏上的文本按钮
在 Windows Phone 7 上,转到“设置”、“电子邮件和电子邮件”。帐户、添加帐户、Windows Live(或任何其他帐户)。请注意,底部有一个带有矩形[登录]按钮的灰色面板。单击电子邮件地址字段,屏幕键盘会在灰色面板上方弹出。旋转手机,灰色面板不会旋转,但页面会旋转。那个灰色面板是应用程序栏,不是吗?
我只找到用于添加基于图标的圆形按钮(和菜单项)的文档。我们如何在应用程序栏上放置一个矩形文本按钮?
On Windows Phone 7, go to Settings, email & accounts, add an account, the Windows Live (or any other). Note at the bottom there is the gray panel with a rectangular [sign in] button. Click in the email address field, and the on screen keyboard pops up ABOVE the gray panel. Rotate the phone, and the gray panel does not rotate, although the page does. That gray panel is the Application Bar, is it not?
I only find docs for adding an icon-based round button (and menu items). How do we put a rectangular textual button on the Application Bar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
第三方开发人员不支持在应用程序栏中添加按钮。应用程序栏本身不是 Silverlight 控件;它是一个应用程序栏。这是一个本土的。只有 OEM、某些合作伙伴和 MS 可以访问本机 SDK,因此您无法将应用程序栏模板化为包含按钮。当然,您可以创建自己的应用程序栏来模仿真实的应用程序栏,但我不推荐这种方法,因为要使其完全正确并在应用程序之间保持一致会非常棘手。
Adding buttons in the Application Bar is not supported for third party developers. The Application Bar itself is not a Silverlight control; it's a native one. Only OEMs, certain partners and MS have access to the native SDK, so you won't be able to template the Application Bar to have buttons. Of course, you could create your own Application Bar that mimics the real one, but I don't recommend that approach as it would be very tricky to get it exactly right and be consistent between apps.
是的,那就是应用程序栏。嗯,这是它的非 Silverlight 版本。 (内置应用程序不是使用 Silverlight 构建的。)
不幸的是,无法使用应用程序栏上的文本按钮。只能使用带有图像的按钮。
是的,这在很多情况下都很好/很有用,但对于当前的 SDK(甚至 Mango)来说这是不可能的。我一直希望它会出现在未来的版本中......
Yes, that's the application bar. Well, it's the non Silverlight version of it. (The built in apps are not built with Silverlight.)
Unfortuanately it is not possible to use text buttons on the application bar. It's only possible to use buttons with images.
Yes it would be nice/useful in a number of situations but it's just not possible with the current SDK (even Mango). I keep hoping it'll be there in a future version...
手机附带的应用程序不限于使用开发人员 API,您提到的应用程序可能使用 C++ 和/或受限 API。作为第三方开发人员,您唯一的选择是坚持使用应用程序栏上的图标。
您始终可以创建一个像应用程序栏一样颜色的
Panel
,沿着屏幕底部对齐并显示按钮或您想要的任何其他 UI 元素。The applications that come with the phone are not restricted to using developer APIs and the one you mention likely uses C++ and / or restricted APIs. As a third-party developer your only option is to stick with icons on the application bar.
You can always create a
Panel
colored like the application bar, aligned along the bottom of the screen and display buttons or whatever other UI element you want to.