Questions tagged [eventtrigger]

Represents a trigger that applies a set of actions in response to an event.

Trigger objects have the Setters, EnterActions, and ExitActions properties that apply changes or actions based on the state of certain properties, while EventTrigger objects start a set of Actions when a specified routed event occurs. For example, you may want to use an EventTrigger to start a set of animations when the mouse pointer is over a certain user interface (UI) control. Unlike Trigger, EventTrigger has no concept of termination of state, so the action will not be undone once the condition that raised the event is no longer true.

More info : http://msdn.microsoft.com/en-us/library/system.windows.eventtrigger(v=vs.110).aspx

784 questions
196
votes
8 answers

Check if event exists on element

Is there a way to check if an event exists in jQuery? I’m working on a plugin that uses custom namespaced events, and would like to be able to check if the event is bound to an element or not.
Corey Hart
  • 10,316
  • 9
  • 41
  • 47
162
votes
11 answers

How to get JQuery.trigger('click'); to initiate a mouse click

I'm having a hard time understand how to simulate a mouse click using JQuery. Can someone please inform me as to what i'm doing wrong. HTML: Don't click me! Click…
lickmycode
  • 2,069
  • 2
  • 19
  • 20
73
votes
4 answers

Setting a property with an EventTrigger

I want to be able to set a property with an EventTrigger, there's a number of problems with this. 1) EventTriggers only support Actions, so I must use a storyBoard to set my properties. 2) Once I use a storyboard, I have two options: Stop: Once…
Chris Nicol
  • 10,256
  • 7
  • 39
  • 49
64
votes
5 answers

How to open a WPF Popup when another control is clicked, using XAML markup only?

I've got two controls, a TextBlock and a PopUp. When the user clicks (MouseDown) on the textblock, I want to display the popup. I would think that I could do this with an EventTrigger on the Popup, but I can't use setters in an EventTrigger, I can…
viggity
  • 15,039
  • 7
  • 88
  • 96
50
votes
2 answers

React event onMouseLeave not triggered when moving cursor fast

Im trying to implement hover event but onMouseLeave is not always triggering when leaving element especially when moving cursor over elements fast. I tried i Chrome, Firefox and Internet Explorer but in every browser same problem appeared. My…
zazmaister
  • 667
  • 1
  • 7
  • 10
28
votes
4 answers

How can I Have a WPF EventTrigger on a View trigger when the underlying Viewmodel dictates it should?

Here's the scenario: I have the following user control, the idea is that it's view model should be able to signal to the view that it needs to "Activate the Glow", thereby playing the Storyboard. ... …
Firoso
  • 6,647
  • 10
  • 45
  • 91
26
votes
7 answers

WPF - Set Focus when a button is clicked - No Code Behind

Is there a way to set Focus from one control to another using WPF Triggers? Like the following example:
Vaccano
  • 78,325
  • 149
  • 468
  • 850
26
votes
3 answers

Creating Storyboard in code behind in WPF

The following code is working fine.
Raj
  • 837
  • 4
  • 15
  • 24
22
votes
5 answers

Fading out a wpf window on close

I want to fade a window in/out in my application. Fading in occurs on Window.Loaded and I wanted to fade out on close (Window.Closed or Window.Closing). Fading in works perfectly, but Window.Closing is not allowed value for RoutedEvent…
James
  • 3,597
  • 11
  • 47
  • 57
15
votes
5 answers

Invoke Command When "ENTER" Key Is Pressed In XAML

I want to invoke a command when ENTER is pressed in a TextBox. Consider the following XAML: ... …
bitxwise
  • 3,534
  • 2
  • 17
  • 22
15
votes
3 answers

Refreshing Owl Carousel 2

I have 3 divs that activate slide toggle when I click on them. And inside every div there is owl carousel slider. If I trigger one div the slider shows, but when I click other div slider doesn't show unless I resize the window. How can I trigger…
vedran
  • 1,106
  • 2
  • 13
  • 18
14
votes
3 answers

Use EventTrigger on a specific key

I would like to invoke a command using EventTrigger when a particular key is touched (for example, the spacebar key) Currently I have:
lost_bits1110
  • 2,380
  • 6
  • 33
  • 44
13
votes
8 answers

How to trigger click or send event in data sharing in other apps on Android?

I am trying to share data from my app to other app like sms or any other app. I have a app where I need to send or share some data to apps like sms or fb messenger. Using this link through I can open up the app and add data into text box using this…
Nilay Singh
  • 2,201
  • 6
  • 31
  • 61
13
votes
5 answers

Google app script trigger not working

I have a google app script which sends email, and i have set a trigger such that it sends email on every form submit. The problem is the trigger works perfectly fine for initial few minutes, but later even after entering correct data. The script…
user4312531
13
votes
3 answers

How to trigger('click') on jquery tab's currently active tab

I have a tabed screen and want to trigger a click on the selected tab once the form is submitted and the return is valid. Here a part of the html:
1
2 3
52 53