用另一个对象控制一个对象? [英] Controlling one object with another?

查看:87
本文介绍了用另一个对象控制一个对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我正在使用Expression Blend 4并尝试用滑块控制一个对象。


例如制作一个 带滑块或滚动条的矩形比例更大或更小。


这是我在Blend UI中可以做的事情,还是我必须在C Sharp中做到这一点?


我在想,如果我在C Sharp中做到这一点,我只需要弄清楚它的哪一部分实际上是滑块,然后以某种方式将它链接到另一个对象。是否有类似这样的事件的编码示例,或者可以在Blend中完成?列表框上的
滚动条如何工作?


谢谢。

解决方案

嗨。


您可以在Blend中对数据块进行数据绑定。此链接可能会有所帮助。


http: //www.silverlightbuzz.com/2009/07/09/data-binding-in-silverlight/


Hi guys. I'm using Expression Blend 4 and trying to control one object with a slider.

For example making one  rectangle scale bigger or smaller with a slider or scroll bar.

Would this be something I can do within the Blend UI or would I have to do this in C Sharp?

I'm thinking if I did it in C Sharp I'd just have to figure out which part of it is actually the slider and then somehow link it to the other object. Is there a coding example of something like this happening or can this be done in Blend? How do the scroll bars on list boxes work?

Thanks.

解决方案

Hi.

You can databind a slider in Blend. This link may be helpful.

http://www.silverlightbuzz.com/2009/07/09/data-binding-in-silverlight/


这篇关于用另一个对象控制一个对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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