125 references to AutomationEvents
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
58
peer?.RaiseAutomationEvent(
AutomationEvents
.LiveRegionChanged);
PresentationCore (37)
MS\Internal\Automation\EventMap.cs (24)
81
private static AutomationEvent GetRegisteredEventObjectHelper(
AutomationEvents
eventId)
87
case
AutomationEvents
.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break;
88
case
AutomationEvents
.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break;
89
case
AutomationEvents
.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break;
90
case
AutomationEvents
.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break;
91
case
AutomationEvents
.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break;
92
case
AutomationEvents
.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break;
93
case
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break;
94
case
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break;
95
case
AutomationEvents
.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break;
96
case
AutomationEvents
.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break;
97
case
AutomationEvents
.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break;
98
case
AutomationEvents
.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break;
99
case
AutomationEvents
.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break;
100
case
AutomationEvents
.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break;
101
case
AutomationEvents
.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break;
102
case
AutomationEvents
.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break;
103
case
AutomationEvents
.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break;
104
case
AutomationEvents
.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break;
105
case
AutomationEvents
.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break;
106
case
AutomationEvents
.Notification: eventObject = AutomationElementIdentifiers.NotificationEvent; break;
107
case
AutomationEvents
.ActiveTextPositionChanged: eventObject = AutomationElementIdentifiers.ActiveTextPositionChangedEvent; break;
183
internal static bool HasRegisteredEvent(
AutomationEvents
eventId)
195
internal static AutomationEvent GetRegisteredEvent(
AutomationEvents
eventId)
MS\Internal\SynchronizedInputHelper.cs (3)
318
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedTarget);
321
peer.RaiseAutomationEvent(
AutomationEvents
.InputDiscarded);
324
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedOtherElement);
System\Windows\Automation\Peers\AutomationPeer.cs (10)
295
public static bool ListenerExists(
AutomationEvents
eventId)
305
public void RaiseAutomationEvent(
AutomationEvents
eventId)
350
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AsyncContentLoaded))
373
if (EventMap.HasRegisteredEvent(
AutomationEvents
.Notification))
389
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AutomationFocusChanged))
395
peer.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
1875
&& EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged) )
1896
if (!EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged))
2036
bool notifyPropertyChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged);
2037
bool notifyStructureChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged);
PresentationFramework (78)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
292
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1)
295
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
299
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
304
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
309
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
314
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
34
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
327
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
331
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
336
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
341
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
345
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
350
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
361
dataGridItemAutomationPeer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
372
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
385
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
389
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
394
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
399
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
403
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
408
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
134
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
149
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
157
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
167
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
174
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
33
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
400
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
System\Windows\Controls\Button.cs (2)
249
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
252
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Calendar.cs (3)
1044
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
1045
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
1046
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
System\Windows\Controls\ComboBox.cs (4)
562
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
563
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
564
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
565
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\DataGrid.cs (10)
2440
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
2464
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
3100
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
4279
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4280
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4281
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
4529
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4530
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4531
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
6838
if (AutomationPeer.ListenerExists(
AutomationEvents
.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
799
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
802
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\ListBox.cs (4)
291
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
292
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
293
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
294
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\MenuItem.cs (2)
1379
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
1382
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
745
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
748
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\MenuBase.cs (3)
298
AutomationEvents
automationEvent = open ?
AutomationEvents
.MenuOpened :
AutomationEvents
.MenuClosed;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
195
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
198
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
362
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
363
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
364
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
365
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\TextAdaptor.cs (2)
321
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextChanged);
329
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextSelectionChanged);
System\Windows\Controls\ToolTip.cs (4)
166
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipClosed))
169
peer?.RaiseAutomationEvent(
AutomationEvents
.ToolTipClosed);
539
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipOpened))
547
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
246
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) )
249
peer?.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
253
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
256
peer?.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
680
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
683
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
110
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
133
RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
158
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
160
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
112
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
150
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
397
if (!IsCheckable && AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
708
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
709
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))