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)
319peer.RaiseAutomationEvent(AutomationEvents.InputReachedTarget); 322peer.RaiseAutomationEvent(AutomationEvents.InputDiscarded); 325peer.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)
293if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1) 296peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 300if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 305peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 310if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 315peer?.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) && 332cellPeer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 337if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 342cellPeer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 346if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 351cellPeer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection); 362dataGridItemAutomationPeer?.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 373cellPeer?.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 386if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 390peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 395if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 400peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 404if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 409peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
135this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 150peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 158this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 168peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 175peer?.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
34if (EventMap.HasRegisteredEvent(AutomationEvents.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
401internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
System\Windows\Controls\Button.cs (2)
250if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 253peer?.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)
563if ( 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)
2441if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 2465if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 3101if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 4280if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4281AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4282AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 4530if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4531AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4532AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 6839if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
800if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 803peer?.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)
1380if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 1383peer?.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
746if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 749peer?.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\MenuBase.cs (3)
299AutomationEvents automationEvent = open ? AutomationEvents.MenuOpened : AutomationEvents.MenuClosed;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
196if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 199peer?.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
363if ( 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)
167if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipClosed)) 170peer?.RaiseAutomationEvent(AutomationEvents.ToolTipClosed); 540if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipOpened)) 548peer.RaiseAutomationEvent(AutomationEvents.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
247&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) ) 250peer?.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 254&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) ) 257peer?.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
681if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 684peer?.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
111internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
134RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
159dataPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 161dataPeer.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)
398if (!IsCheckable && AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
709if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 710|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))