How to give the condition for EventTrigger?

Posted by Prabu on Stack Overflow See other posts from Stack Overflow or by Prabu
Published on 2010-05-04T10:17:11Z Indexed on 2010/05/04 10:18 UTC
Read the original article Hit count: 273

Filed under:

Is it possible to give the condition within the EventTrigger?? I have written a following EventTrigger (Mouse.MouseLeave) for Radio button. I want this should not be trigged for an item which is in Checked condition (IsChecked=True).

<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="border">                                 
      <BeginStoryboard Name="out_BeginStoryboard" Storyboard="{StaticResource out}" />
      <RemoveStoryboard BeginStoryboardName="over_BeginStoryboard" />
</EventTrigger>

Please let me know how can I achieve this?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about wpf