114 references to AutomationEvents
PresentationCore (34)
Core\CSharp\MS\Internal\Automation\EventMap.cs (22)
100
private static AutomationEvent GetRegisteredEventObjectHelper(
AutomationEvents
eventId)
106
case
AutomationEvents
.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break;
107
case
AutomationEvents
.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break;
108
case
AutomationEvents
.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break;
109
case
AutomationEvents
.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break;
110
case
AutomationEvents
.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break;
111
case
AutomationEvents
.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break;
112
case
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break;
113
case
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break;
114
case
AutomationEvents
.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break;
115
case
AutomationEvents
.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break;
116
case
AutomationEvents
.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break;
117
case
AutomationEvents
.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break;
118
case
AutomationEvents
.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break;
119
case
AutomationEvents
.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break;
120
case
AutomationEvents
.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break;
121
case
AutomationEvents
.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break;
122
case
AutomationEvents
.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break;
123
case
AutomationEvents
.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break;
124
case
AutomationEvents
.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break;
203
internal static bool HasRegisteredEvent(
AutomationEvents
eventId)
215
internal static AutomationEvent GetRegisteredEvent(
AutomationEvents
eventId)
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (3)
325
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedTarget);
328
peer.RaiseAutomationEvent(
AutomationEvents
.InputDiscarded);
331
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedOtherElement);
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (9)
328
static public bool ListenerExists(
AutomationEvents
eventId)
338
public void RaiseAutomationEvent(
AutomationEvents
eventId)
384
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AsyncContentLoaded))
400
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AutomationFocusChanged))
406
peer.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
1794
&& EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged) )
1815
if (!EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged))
1957
bool notifyPropertyChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged);
1958
bool notifyStructureChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged);
PresentationFramework (76)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
308
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1)
313
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
318
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
325
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
331
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
338
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
332
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
338
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
344
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
351
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
356
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
363
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
377
dataGridItemAutomationPeer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
391
cellPeer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
405
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
411
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
417
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
424
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
429
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
436
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
144
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
161
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
170
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
182
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
192
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
417
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
src\Framework\System\Windows\Controls\Button.cs (2)
256
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
260
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\Calendar.cs (3)
1052
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
1053
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
1054
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
src\Framework\System\Windows\Controls\ComboBox.cs (4)
580
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
581
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
582
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
583
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\DataGrid.cs (10)
2457
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
2484
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
3129
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
4314
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4315
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4316
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
4567
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4568
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4569
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
6888
if (AutomationPeer.ListenerExists(
AutomationEvents
.PropertyChanged))
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
846
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
850
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\ListBox.cs (4)
296
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
297
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
298
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
299
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\MenuItem.cs (2)
1396
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
1400
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
764
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
769
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (3)
310
AutomationEvents
automationEvent = open ?
AutomationEvents
.MenuOpened :
AutomationEvents
.MenuClosed;
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (2)
208
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
212
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\TabControl.cs (4)
381
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
382
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
383
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
384
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
310
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextChanged);
318
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextSelectionChanged);
src\Framework\System\Windows\Controls\ToolTip.cs (4)
190
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipClosed))
194
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipClosed);
549
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipOpened))
557
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipOpened);
src\Framework\System\Windows\Controls\TreeView.cs (4)
253
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) )
257
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
261
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
265
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
720
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
724
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (2)
280
_itemAutomationPeer.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
556
this.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyContainerAutomationPeer.cs (1)
146
this.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (1)
128
this.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);