没有标题的 Windows Phone 7 全景项目
我想创建一个根本没有标题的 PanoramaItem。我想在此 PanoramaItem 中放置一些控件,并且希望它们占据整个空间。当然,我可以删除标题文本并将字体更改为较小,但仍然留有一些边距。这可能很容易,但我是 WP7 开发的新手......
是否可以实现以及如何实现?
提前致谢!
I would like to create a PanoramaItem that has no header at all. I would like to place some controls in this PanoramaItem and I want them to occupy the whole space. Of course I was able to delete the header text and change the font to smaller, but still there are some margins left. This might be easy, but I am new to WP7 development...
Is it possible to achieve and how?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
负上边距可能是摆脱顽固的标题填充的最快方法。
Negative top margin may be the quickest way to get rid the stubborn header padding.
您需要修改全景的样式。最近这里有一个有关 Pivot 的问题:创建 Pivot Windows Phone 7 应用程序上的页脚,但您可以对全景图执行相同操作
You need to modify Styles of Panorama. There is was a question recently for Pivot here: Creating Pivot Footers on Windows phone 7 application, but you can do the same with a Panorama
这是一个非常有趣的方法,但对于 WP 8.1 Silverlight 应用程序来说,这工作得很好。
it's a very funny method but for WP 8.1 Silverlight Apps this works fine.