视图之间快速导航的设计建议 [英] Design advices for quick navigation between view

查看:25
本文介绍了视图之间快速导航的设计建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,当一个视图需要大量绑定或一些 UI 元素(如 Bing 地图)时,加载需要一段时间"(例如在半秒到一秒之间).

Usually, when a View requires a lot of bindings, or some UI Elements like a Bing Map, it takes a "while" to load (like between half a second and a second).

我不希望在点击"操作(例如点击 ListBox 上的元素)和导航操作(显示新页面)之间出现延迟.

I don't want a delay between a "tap" action (like tapping an element on a ListBox) and the navigation action (displaying a new page).

我不介意逐步显示页面.例如,对于 Bing 地图,我不介意显示只有标题的黑色页面,一秒钟后,显示地图.

I don't mind displaying the page progressively. For example, for a Bing Map, I don't mind displaying a black page with only a title, and a second later, having the Map appear.

最佳做法是什么?如果我不够清楚,它可以发布示例

What are the best practices ? It could post a sample if i'm not clear enough

我会暂时保留这个问题,以便其他人可以回答.感谢马特和米克的精彩回答.我已经在进行一些改进.主要是在页面加载后绑定我的控件.

edit: I'll keep the question open for a while, so other can answer. Thanks Matt and Mick for awesome answers. I'm already working on some improvements. The major one being binding my controls after the page loaded.

推荐答案

预计在资源受限的设备上,非平凡的操作至少需要一点时间来执行.

It's expected on resource constrained devices that non trivial actions will take at least a little time to execute.

最常推荐的最佳做法是使用动画来为用户提供感知性能的印象.这是产品团队在整个 CTP 和 Beta 阶段以及在 Mix 10 和 Tech Ed 2010 的演示中反复提出的建议.

The most commonly recommended best practice for dealing with this is to use animations to give the user the impression of perceived performance. This has been a recurring recommendation throughout the CTP and Beta phases by the product team and in presentations at Mix 10 and Tech Ed 2010.

页面转换是一种常见的方法.

Page transitions are a common approach to this.

在加入 11 月工具包之前由 Kevin Marshall 在此讨论.

Discussed here by Kevin Marshall, prior to inclusion in the November toolkit.

WP7 – 页面转换样品

这里,引用工具包中的控件.

And here, referencing the control in the toolkit.

Windows Phone 7 的过渡

还有一些非常基本的优化,您可以进行一些非常基本的优化,只需稍加努力即可获得成功.

There are also a number of very basic optimisations you can do that will give you some bang for a little effort.

我还要重申 Matt 的建议,即不要加载最初未使用的控件.

I would also reiterate Matt's suggestion for not loading controls that aren't used initially.

如果您决定加倍努力,您可以采取更多措施来优化页面加载.这两个帖子在这方面值得吸收.

If you decide to go the extra mile, there is more you can do to optimise page loading. These two posts are worth absorbing in that regard.

创造高为 Windows Phone 执行 Silverlight 应用程序

WP7 开发提示第 1 部分 - 凯文·马歇尔 (Kevin Marshall) 为很棒的人撰写的史诗般的工作博客

如果使用列表框,还要熟悉 Oren Nachman 和 David Anson 的

If using Listboxes, also familiarise with Oren Nachman and David Anson's

WP7 Silverlight Perf 演示 1:VirtualizingStackPanel 与 StackPanel 作为 ListBox ItemsPanel

保持低调 LowProfileImageLoader 通过在后台加载图像来帮助 Windows Phone 7 UI 线程保持响应

今天不要做你可以推迟到明天的事情 DeferredLoadListBox (和 StackPanel) 帮助 Windows Phone 7 列表平滑一致地滚动

并确保图像尺寸针对其显示尺寸进行了优化.

and be sure image sizes are optimised for their display size.

这篇关于视图之间快速导航的设计建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆