从行为中捕获事件 [英] Capture events from Behavior

查看:82
本文介绍了从行为中捕获事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

是否可以检测Invoke何时执行?我们可以从一个行为中捕获事件吗?
祝亲切的问候.Dieter

Hello

Is it possible tot detect when a Invoke is done executing? Can we capture events from a Behavior?

kind regards
Dieter

推荐答案

Hi Dieter,
是的,这是可能的。如果您在行为上创建了一个事件,则可以让EventTrigger监听它。如果您尝试在Blend中执行此操作,则必须手动设置SourceName,因为我们不允许您通过界面atm定位行为。

谢谢,
Scott
Hi Dieter,

Yes this is possible.  If you create an event on your Behavior you can then have the EventTrigger listen for it.  If you try to do this in Blend however you will have to manually set the SourceName as we do not allow you to target Behaviors via the interface atm.

Thanks,
Scott


这篇关于从行为中捕获事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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