Silverlight:在EventTrigger中访问事件有效内容

时间:2010-12-21 19:20:05

标签: silverlight-4.0

有没有办法访问EventTrigger绑定的事件的EventArgs?我创建了一个通用的EventArgs类,让我将通用有效负载传递给事件处理程序。如何在EventTrigger中访问它?是否有任何扩展可以让我这样做?

   <i:EventTrigger EventName="AgentSelected" SourceObject="{Binding ElementName=ctlAgentSearch, Path=DataContext}">
                <ei:CallMethodAction TargetObject="{Binding ElementName=bidAgentEditView}"  MethodName="ToggleSearchPanel"/>
                <ei:ChangePropertyAction TargetObject="{Binding ElementName=text}" PropertyName=Text" 
Value=??? **Here I need to access EventArgs of the event that was raised?** />
            </i:EventTrigger>

0 个答案:

没有答案