127 references to AutomationEvents
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
123
if (AutomationPeer.ListenerExists(
AutomationEvents
.AutomationFocusChanged))
125
UIElementAutomationPeer.CreatePeerForElement(this)?.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
58
peer?.RaiseAutomationEvent(
AutomationEvents
.LiveRegionChanged);
PresentationCore (37)
MS\Internal\Automation\EventMap.cs (24)
95
private static AutomationEvent GetRegisteredEventObjectHelper(
AutomationEvents
eventId)
101
case
AutomationEvents
.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break;
102
case
AutomationEvents
.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break;
103
case
AutomationEvents
.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break;
104
case
AutomationEvents
.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break;
105
case
AutomationEvents
.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break;
106
case
AutomationEvents
.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break;
107
case
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break;
108
case
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break;
109
case
AutomationEvents
.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break;
110
case
AutomationEvents
.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break;
111
case
AutomationEvents
.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break;
112
case
AutomationEvents
.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break;
113
case
AutomationEvents
.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break;
114
case
AutomationEvents
.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break;
115
case
AutomationEvents
.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break;
116
case
AutomationEvents
.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break;
117
case
AutomationEvents
.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break;
118
case
AutomationEvents
.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break;
119
case
AutomationEvents
.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break;
120
case
AutomationEvents
.Notification: eventObject = AutomationElementIdentifiers.NotificationEvent; break;
121
case
AutomationEvents
.ActiveTextPositionChanged: eventObject = AutomationElementIdentifiers.ActiveTextPositionChangedEvent; break;
197
internal static bool HasRegisteredEvent(
AutomationEvents
eventId)
209
internal static AutomationEvent GetRegisteredEvent(
AutomationEvents
eventId)
MS\Internal\SynchronizedInputHelper.cs (3)
326
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedTarget);
329
peer.RaiseAutomationEvent(
AutomationEvents
.InputDiscarded);
332
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedOtherElement);
System\Windows\Automation\Peers\AutomationPeer.cs (10)
307
static public bool ListenerExists(
AutomationEvents
eventId)
317
public void RaiseAutomationEvent(
AutomationEvents
eventId)
362
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AsyncContentLoaded))
385
if (EventMap.HasRegisteredEvent(
AutomationEvents
.Notification))
401
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AutomationFocusChanged))
407
peer.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
1887
&& EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged) )
1908
if (!EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged))
2048
bool notifyPropertyChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged);
2049
bool notifyStructureChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged);
PresentationFramework (78)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
300
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1)
305
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
310
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
317
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
323
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
330
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
36
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
333
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
339
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
345
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
352
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
357
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
364
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
378
dataGridItemAutomationPeer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
392
cellPeer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
406
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
412
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
418
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
425
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
430
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
437
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
147
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
164
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
173
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
185
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
195
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
35
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
416
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
System\Windows\Controls\Button.cs (2)
259
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
263
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Calendar.cs (3)
1051
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
1052
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
1053
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
System\Windows\Controls\ComboBox.cs (4)
579
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
580
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
581
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
582
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\DataGrid.cs (10)
2452
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
2479
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
3124
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
4309
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4310
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4311
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
4562
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4563
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4564
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
6883
if (AutomationPeer.ListenerExists(
AutomationEvents
.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
813
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
817
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\ListBox.cs (4)
298
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
299
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
300
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
301
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\MenuItem.cs (2)
1393
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
1397
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
763
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
768
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\MenuBase.cs (3)
308
AutomationEvents
automationEvent = open ?
AutomationEvents
.MenuOpened :
AutomationEvents
.MenuClosed;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
208
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
212
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
380
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
381
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
382
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
383
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\TextAdaptor.cs (2)
331
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextChanged);
339
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextSelectionChanged);
System\Windows\Controls\ToolTip.cs (4)
180
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipClosed))
184
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipClosed);
556
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipOpened))
564
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
252
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) )
256
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
260
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
264
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
685
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
689
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
118
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
137
RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
165
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
167
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
115
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
153
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
403
if (!IsCheckable && AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
729
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
730
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))