开发者

Silverlight: Accessing event payload in EventTrigger

Is there a way to access EventArgs of the event that EventTrigger is bound to? I have created a generic EventArgs class that let's me pass generic payload through to event handler. How can I access that in EventTrigger? Is there any extension that would allow me to do that?

   <i:EventTrigger EventName="AgentSelected" SourceObject="{Binding ElementName=ctlAgentSearch, Path=DataContext}">
  开发者_如何学Python              <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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜