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