开发者

Silverlight: Accessing event payload in EventTrigger

开发者 https://www.devze.com 2023-01-31 11:37 出处:网络
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 t

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

精彩评论

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