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
12
votes
2 answers

how to trigger focus event on a textbox using javascript?

How to trigger focus event on a textbox using javascript? For example in jQuery we can trigger the focus event with $('#textBox').focus(). Likewise do we have any similar trigger functionality in pure javascript?
Ajay Gangisetti
  • 431
  • 2
  • 5
  • 13
10
votes
2 answers

simulating an change event jquery

I have five lists (select) that are populated with php / mysql and jquery. I use this script: http://bit.ly/3YTAXe When I post my form and the new page appears, I redisplay my five list and I want my 5 lists will populate with the values ​​posted. I…
Raphaël
  • 1,141
  • 3
  • 18
  • 32
10
votes
1 answer

Condition in an EventTrigger

Can I check condition inside an event trigger? how can I do something like that using only XAML?
iLemming
  • 34,477
  • 60
  • 195
  • 309
10
votes
5 answers

jQuery: trigger click or focus input field

I have a page with multiple divs that all look like the example below. Each div contains a field, a hidden field and a button. How can I achieve that by click on the button the (visible) input field gets triggered ? I need to trigger either a…
user2571510
  • 11,167
  • 39
  • 92
  • 138
8
votes
4 answers

jquery trigger: how can I trigger the browse file in the input when I click on a text link?

Following up on this post, I have another issuer - how can I trigger the browse file in the input when I click on a text link? Basically I want to hide the form but it will be triggered when you click on the upload text link.
Run
  • 54,938
  • 169
  • 450
  • 748
8
votes
1 answer

Interaction triggers inside DataTemplate not working with XamlReader

I'm trying to parse with XamlReader.Load() a DataTemplate (for a WPF datagrid) created dynamically in code behind : DataTemplate dataTemplate; StringReader template = new StringReader($@"
Manu
  • 1,685
  • 11
  • 27
8
votes
4 answers

Powershell New-ScheduledTaskTrigger recurring task with -RepetitionInterval

I'm finding the errors related to ScheduledTask cmdles give extremely cryptic errors. I want to schedule a test task to run every 1 minute and repeat forever. Here's what I'm trying, but no success: cls #$Action = New-ScheduledTaskAction -Execute…
NealWalters
  • 17,197
  • 42
  • 141
  • 251
8
votes
2 answers

Change Button Background color on EventTrigger in WPF

I am trying to change the Background color of my Button when the user clicks it. I am using triggers to achieve it. My XAML is: