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)
82
private static AutomationEvent GetRegisteredEventObjectHelper(
AutomationEvents
eventId)
88
case
AutomationEvents
.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break;
89
case
AutomationEvents
.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break;
90
case
AutomationEvents
.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break;
91
case
AutomationEvents
.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break;
92
case
AutomationEvents
.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break;
93
case
AutomationEvents
.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break;
94
case
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break;
95
case
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break;
96
case
AutomationEvents
.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break;
97
case
AutomationEvents
.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break;
98
case
AutomationEvents
.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break;
99
case
AutomationEvents
.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break;
100
case
AutomationEvents
.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break;
101
case
AutomationEvents
.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break;
102
case
AutomationEvents
.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break;
103
case
AutomationEvents
.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break;
104
case
AutomationEvents
.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break;
105
case
AutomationEvents
.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break;
106
case
AutomationEvents
.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break;
107
case
AutomationEvents
.Notification: eventObject = AutomationElementIdentifiers.NotificationEvent; break;
108
case
AutomationEvents
.ActiveTextPositionChanged: eventObject = AutomationElementIdentifiers.ActiveTextPositionChangedEvent; break;
184
internal static bool HasRegisteredEvent(
AutomationEvents
eventId)
196
internal static AutomationEvent GetRegisteredEvent(
AutomationEvents
eventId)
MS\Internal\SynchronizedInputHelper.cs (3)
319
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedTarget);
322
peer.RaiseAutomationEvent(
AutomationEvents
.InputDiscarded);
325
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedOtherElement);
System\Windows\Automation\Peers\AutomationPeer.cs (10)
296
static public bool ListenerExists(
AutomationEvents
eventId)
306
public void RaiseAutomationEvent(
AutomationEvents
eventId)
351
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AsyncContentLoaded))
374
if (EventMap.HasRegisteredEvent(
AutomationEvents
.Notification))
390
if (EventMap.HasRegisteredEvent(
AutomationEvents
.AutomationFocusChanged))
396
peer.RaiseAutomationEvent(
AutomationEvents
.AutomationFocusChanged);
1876
&& EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged) )
1897
if (!EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged))
2037
bool notifyPropertyChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.PropertyChanged);
2038
bool notifyStructureChanged = EventMap.HasRegisteredEvent(
AutomationEvents
.StructureChanged);
PresentationFramework (78)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
293
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1)
296
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
300
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
305
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
310
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
315
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
35
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
328
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
332
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
337
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
342
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
346
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
351
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
362
dataGridItemAutomationPeer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
373
cellPeer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
386
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
390
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
395
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
400
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
404
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
409
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
135
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
150
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
158
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
168
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
175
peer?.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
34
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
401
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
System\Windows\Controls\Button.cs (2)
250
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
253
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Calendar.cs (3)
1045
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
1046
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
1047
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
System\Windows\Controls\ComboBox.cs (4)
563
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
564
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
565
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
566
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\DataGrid.cs (10)
2441
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
2465
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
3101
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
4280
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4281
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4282
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
4530
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4531
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4532
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
6839
if (AutomationPeer.ListenerExists(
AutomationEvents
.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
800
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
803
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\ListBox.cs (4)
292
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
293
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
294
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
295
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\MenuItem.cs (2)
1380
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
1383
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
746
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
749
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\MenuBase.cs (3)
299
AutomationEvents
automationEvent = open ?
AutomationEvents
.MenuOpened :
AutomationEvents
.MenuClosed;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
196
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
199
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
363
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
364
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
365
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
366
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\TextAdaptor.cs (2)
322
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextChanged);
330
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextSelectionChanged);
System\Windows\Controls\ToolTip.cs (4)
167
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipClosed))
170
peer?.RaiseAutomationEvent(
AutomationEvents
.ToolTipClosed);
540
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipOpened))
548
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
247
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) )
250
peer?.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
254
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
257
peer?.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
681
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
684
peer?.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
111
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
134
RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
159
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
161
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
113
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
151
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
398
if (!IsCheckable && AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
709
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
710
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))