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)
322
peer.RaiseAutomationEvent(
AutomationEvents
.InputReachedTarget);
325
peer.RaiseAutomationEvent(
AutomationEvents
.InputDiscarded);
328
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)
294
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1)
299
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
304
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
311
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
317
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
324
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) &&
334
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
340
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
347
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
352
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
359
cellPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
373
dataGridItemAutomationPeer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
387
cellPeer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
401
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) &&
407
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
413
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection))
420
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
425
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
432
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
135
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
152
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
161
this.RaiseAutomationEvent(
AutomationEvents
.SelectionPatternOnInvalidated);
173
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection);
183
peer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
34
if (EventMap.HasRegisteredEvent(
AutomationEvents
.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
404
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
System\Windows\Controls\Button.cs (2)
250
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
254
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)
569
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
570
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
571
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
572
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\DataGrid.cs (10)
2453
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
2480
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
3125
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
4310
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4311
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4312
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
4563
if (AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) ||
4564
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection) ||
4565
AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))
6884
if (AutomationPeer.ListenerExists(
AutomationEvents
.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
809
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
813
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)
1383
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
1387
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
758
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
763
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)
199
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
203
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
370
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionPatternOnInvalidated)
371
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
372
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementAddedToSelection)
373
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\TextAdaptor.cs (2)
328
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextChanged);
336
_textPeer.RaiseAutomationEvent(
AutomationEvents
.TextPatternOnTextSelectionChanged);
System\Windows\Controls\ToolTip.cs (4)
167
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipClosed))
171
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipClosed);
544
if (AutomationPeer.ListenerExists(
AutomationEvents
.ToolTipOpened))
552
peer.RaiseAutomationEvent(
AutomationEvents
.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
247
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected) )
251
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
255
&& AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection) )
259
peer.RaiseAutomationSelectionEvent(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
681
if (AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
685
peer.RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
114
internal void RaiseAutomationSelectionEvent(
AutomationEvents
eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
134
RaiseAutomationEvent(
AutomationEvents
.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
162
dataPeer.RaiseAutomationEvent(
AutomationEvents
.SelectionItemPatternOnElementSelected);
164
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)
401
if (!IsCheckable && AutomationPeer.ListenerExists(
AutomationEvents
.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
727
if ( AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementSelected)
728
|| AutomationPeer.ListenerExists(
AutomationEvents
.SelectionItemPatternOnElementRemovedFromSelection))