127 references to AutomationEvents
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
123if (AutomationPeer.ListenerExists(AutomationEvents.AutomationFocusChanged)) 125UIElementAutomationPeer.CreatePeerForElement(this)?.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged);
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
58peer?.RaiseAutomationEvent(AutomationEvents.LiveRegionChanged);
PresentationCore (37)
MS\Internal\Automation\EventMap.cs (24)
82private static AutomationEvent GetRegisteredEventObjectHelper(AutomationEvents eventId) 88case AutomationEvents.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break; 89case AutomationEvents.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break; 90case AutomationEvents.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break; 91case AutomationEvents.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break; 92case AutomationEvents.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break; 93case AutomationEvents.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break; 94case AutomationEvents.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break; 95case AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break; 96case AutomationEvents.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break; 97case AutomationEvents.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break; 98case AutomationEvents.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break; 99case AutomationEvents.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break; 100case AutomationEvents.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break; 101case AutomationEvents.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break; 102case AutomationEvents.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break; 103case AutomationEvents.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break; 104case AutomationEvents.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break; 105case AutomationEvents.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break; 106case AutomationEvents.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break; 107case AutomationEvents.Notification: eventObject = AutomationElementIdentifiers.NotificationEvent; break; 108case AutomationEvents.ActiveTextPositionChanged: eventObject = AutomationElementIdentifiers.ActiveTextPositionChangedEvent; break; 184internal static bool HasRegisteredEvent(AutomationEvents eventId) 196internal static AutomationEvent GetRegisteredEvent(AutomationEvents eventId)
MS\Internal\SynchronizedInputHelper.cs (3)
322peer.RaiseAutomationEvent(AutomationEvents.InputReachedTarget); 325peer.RaiseAutomationEvent(AutomationEvents.InputDiscarded); 328peer.RaiseAutomationEvent(AutomationEvents.InputReachedOtherElement);
System\Windows\Automation\Peers\AutomationPeer.cs (10)
296static public bool ListenerExists(AutomationEvents eventId) 306public void RaiseAutomationEvent(AutomationEvents eventId) 351if (EventMap.HasRegisteredEvent(AutomationEvents.AsyncContentLoaded)) 374if (EventMap.HasRegisteredEvent(AutomationEvents.Notification)) 390if (EventMap.HasRegisteredEvent(AutomationEvents.AutomationFocusChanged)) 396peer.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged); 1876&& EventMap.HasRegisteredEvent(AutomationEvents.PropertyChanged) ) 1897if (!EventMap.HasRegisteredEvent(AutomationEvents.StructureChanged)) 2037bool notifyPropertyChanged = EventMap.HasRegisteredEvent(AutomationEvents.PropertyChanged); 2038bool notifyStructureChanged = EventMap.HasRegisteredEvent(AutomationEvents.StructureChanged);
PresentationFramework (78)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
294if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1) 299peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 304if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 311peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 317if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 324peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
35if (EventMap.HasRegisteredEvent(AutomationEvents.ActiveTextPositionChanged))
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
328if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 334cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 340if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 347cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 352if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 359cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection); 373dataGridItemAutomationPeer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 387cellPeer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 401if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 407peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 413if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 420peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 425if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 432peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
135this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 152peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 161this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 173peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 183peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
34if (EventMap.HasRegisteredEvent(AutomationEvents.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
404internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
System\Windows\Controls\Button.cs (2)
250if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 254peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Calendar.cs (3)
1045if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 1046AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 1047AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))
System\Windows\Controls\ComboBox.cs (4)
569if ( 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)
2453if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 2480if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 3125if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 4310if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4311AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4312AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 4563if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4564AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4565AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 6884if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
809if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 813peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\ListBox.cs (4)
292if ( 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)
1383if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 1387peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
758if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 763peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\MenuBase.cs (3)
299AutomationEvents automationEvent = open ? AutomationEvents.MenuOpened : AutomationEvents.MenuClosed;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
199if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 203peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
370if ( 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)
167if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipClosed)) 171peer.RaiseAutomationEvent(AutomationEvents.ToolTipClosed); 544if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipOpened)) 552peer.RaiseAutomationEvent(AutomationEvents.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
247&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) ) 251peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 255&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) ) 259peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
681if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 685peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
114internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
134RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
162dataPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 164dataPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
113peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 151peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
401if (!IsCheckable && AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
727if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 728|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))