使用Sketchflow基于ListBox选择更改状态 [英] Changing State based on ListBox Selection using Sketchflow

查看:67
本文介绍了使用Sketchflow基于ListBox选择更改状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是Expression blend的新手,我正在尝试为我的作业制作一个屏幕原型。基本上,我想有2个列表框。第一个列表框包含库列表。第二个列表框包含每个库的书籍。我想在listbox 1中点击和项目的效果原型,并在列表框2中显示该库的内容。由于这是一个原型,我只是在两个列表框中使用示例数据。实际上我有几个列表框代表列表框2中的数据,我想在用户点击列表框1中的不同项目时更改每个列表框的不透明度。任何建议?

谢谢,
MW

Hi,

I'm new to Expression blend and I'm trying to prototype a screen for an assignment that I have.  Basically, I would like to have 2 listboxes.  The first listbox contains a list of libraries.  The second list box contains the books for each library.  I want to prototype the effect of clicking on and item in listbox 1 and displaying the contents of that library in listbox 2.  Since this is a prototype, i'm just using sample data in both list boxes.  Actually I have several listboxes that represent the data in listbox 2 and I would like to change the Opacity of each when a user clicks on different items in listbox 1.  Any suggestions?

Thanks,
MW

推荐答案

你好,新手们!昨天我刚刚开始修饰Expression Blend,真的很喜欢它。我正在接近学习过程的一种方式是浏览论坛并尝试人们需要帮助的事情。我认为*我有一个解决方案,但我不肯定。

我采取的基本方法是:



  • 添加包含三个listboxitems的列表框

  • 添加了三个具有不同背景颜色的rects(代替其他列表框)

  • 设置初始不透明度三个列表框中的0个

  • 创建了6个事件 - 每个listboxitem 2个事件。一个是在选择listboxitem时触发,另一个是在取消选择listboxitem时触发。

  • 创建3个故事板 - 每个listboxitem 1个,并在0.5秒时将不透明度设置为100进入时间线

Hello, fellow newbie!

I just started tinkering around with Expression Blend yesterday, and really enjoy it.  One way that I'm approaching the learning process is to look through the forum and try out things people need help with.  I *think* I have a solution for you, but am not positive.

The basic approach I took was this:

  • add listbox with three listboxitems
  • added three rects with different background colors (in place of your other listboxes)
  • set the initial opacity of the three listboxes to 0
  • created 6 events -- 2 for each listboxitem.  One is triggered when the listboxitem is selected, and the other is triggered when the listboxitem is unselected.
  • created 3 storyboards -- 1 for each listboxitem, and sets the opacity to 100 at 0.5 seconds into the timeline


这篇关于使用Sketchflow基于ListBox选择更改状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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