如何在 SketchFlow 中存储屏幕之间的状态?
我正在使用 Expression Blend 3 和 SketchFlow(具体来说是一个 Silverlight SketchFlow 应用程序)构建一个原型,它由多个我想要在它们之间共享状态的屏幕组成。
举个例子:
屏幕 1 -“登录”屏幕:我希望用户输入假的用户名和密码。
屏幕 2 - “主”屏幕:我想显示该用户名,以便用户看到他们的输入得到了反映。
屏幕
这只是一个简单的示例,并不是大多数原型需要演示的内容,但可以在需要将一个屏幕上的选择保留到下一个屏幕的应用程序中使用相同的功能 。
我怎样才能在 SketchFlow 中做到这一点?我知道我可以编写 Silverlight 代码来将一些数据存储在独立存储中,但我正在尝试采用“零代码”方法,因为这将是一个一次性原型,并且更愿意在SketchFlow(如果可用)。
Sketchflow 是否提供了一种在屏幕之间声明数据的方法?
I'm building a prototype using Expression Blend 3 and SketchFlow (a Silverlight SketchFlow application to be specific) and it consists of multiple screens that I want to share state between.
Take this example:
Screen 1 - 'Login' screen: I want the user to type in a fake user name and password.
Screen 2 - 'Home' screen: I want to display that user name so the user sees that their input is reflected.
This is just a trivial example and not something that most prototypes need to demonstrate, but the same functionality could be used in an application where the selection on one screen needs to be persisted for the next screen.
How can I do this in SketchFlow? I know that I can write Silverlight code to store some data in isolated storage, but I'm trying to go with the 'zero code' approach since this will be a throw-away prototype and would prefer to use some built-in mechanism in SketchFlow if available.
Does Sketchflow offer a way to state data between screens?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您正在制作一次性原型,那么我的建议是最简单的:
仅提供通过原型的一条路径。只允许浏览原型的人通过不同屏幕的单一路径进行导航。这样,您就不必担心状态,因为您始终知道用户将如何到达该原型屏幕。
它不需要任何代码,并且可以让用户/客户了解屏幕的外观。
If you're doing a throw-away prototype, then my suggestion is the simpliest:
Only provide one path through the prototype. Only allow the person walking through the prototype to navigate through a single path through the different screens. That way, you don't have to worry about state because you always know how the user is going to get to that prototype screen.
It requires no code and gives the user/customer some idea of what the screens are going to look like.
以下示例展示了如何使用 Christian Schormann 的行为来存储全局状态:
http://electricbeach.org/?p=349
Here is an example showing how to use behaviors to store global state from Christian Schormann:
http://electricbeach.org/?p=349
您可能还想看看我上周在 PDC 上提供的演示,其中包含一个保留全局状态和登录行为的示例。此示例的代码位于我的博客 electricbeach.org 上
You might also want to have a look at the demo I gave at PDC last week which contains an example for both preserving global state and a login behavior. Code for this sample is on my blog at electricbeach.org