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)
95private static AutomationEvent GetRegisteredEventObjectHelper(AutomationEvents eventId) 101case AutomationEvents.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break; 102case AutomationEvents.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break; 103case AutomationEvents.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break; 104case AutomationEvents.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break; 105case AutomationEvents.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break; 106case AutomationEvents.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break; 107case AutomationEvents.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break; 108case AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break; 109case AutomationEvents.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break; 110case AutomationEvents.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break; 111case AutomationEvents.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break; 112case AutomationEvents.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break; 113case AutomationEvents.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break; 114case AutomationEvents.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break; 115case AutomationEvents.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break; 116case AutomationEvents.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break; 117case AutomationEvents.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break; 118case AutomationEvents.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break; 119case AutomationEvents.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break; 120case AutomationEvents.Notification: eventObject = AutomationElementIdentifiers.NotificationEvent; break; 121case AutomationEvents.ActiveTextPositionChanged: eventObject = AutomationElementIdentifiers.ActiveTextPositionChangedEvent; break; 197internal static bool HasRegisteredEvent(AutomationEvents eventId) 209internal static AutomationEvent GetRegisteredEvent(AutomationEvents eventId)
MS\Internal\SynchronizedInputHelper.cs (3)
326peer.RaiseAutomationEvent(AutomationEvents.InputReachedTarget); 329peer.RaiseAutomationEvent(AutomationEvents.InputDiscarded); 332peer.RaiseAutomationEvent(AutomationEvents.InputReachedOtherElement);
System\Windows\Automation\Peers\AutomationPeer.cs (10)
307static public bool ListenerExists(AutomationEvents eventId) 317public void RaiseAutomationEvent(AutomationEvents eventId) 362if (EventMap.HasRegisteredEvent(AutomationEvents.AsyncContentLoaded)) 385if (EventMap.HasRegisteredEvent(AutomationEvents.Notification)) 401if (EventMap.HasRegisteredEvent(AutomationEvents.AutomationFocusChanged)) 407peer.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged); 1887&& EventMap.HasRegisteredEvent(AutomationEvents.PropertyChanged) ) 1908if (!EventMap.HasRegisteredEvent(AutomationEvents.StructureChanged)) 2048bool notifyPropertyChanged = EventMap.HasRegisteredEvent(AutomationEvents.PropertyChanged); 2049bool notifyStructureChanged = EventMap.HasRegisteredEvent(AutomationEvents.StructureChanged);
PresentationFramework (78)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
300if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1) 305peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 310if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 317peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 323if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 330peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
36if (EventMap.HasRegisteredEvent(AutomationEvents.ActiveTextPositionChanged))
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
333if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 339cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 345if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 352cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 357if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 364cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection); 378dataGridItemAutomationPeer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 392cellPeer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 406if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 412peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 418if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 425peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 430if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 437peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
147this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 164peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 173this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 185peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 195peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
35if (EventMap.HasRegisteredEvent(AutomationEvents.ActiveTextPositionChanged))
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
416internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
System\Windows\Controls\Button.cs (2)
259if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 263peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Calendar.cs (3)
1051if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 1052AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 1053AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))
System\Windows\Controls\ComboBox.cs (4)
579if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 580|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 581|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 582|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\DataGrid.cs (10)
2452if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 2479if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 3124if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 4309if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4310AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4311AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 4562if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4563AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4564AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 6883if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
System\Windows\Controls\GridViewColumnHeader.cs (2)
813if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 817peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\ListBox.cs (4)
298if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 299|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 300|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 301|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\MenuItem.cs (2)
1393if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 1397peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
763if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 768peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\Primitives\MenuBase.cs (3)
308AutomationEvents automationEvent = open ? AutomationEvents.MenuOpened : AutomationEvents.MenuClosed;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
208if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 212peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System\Windows\Controls\TabControl.cs (4)
380if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 381|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 382|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 383|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
System\Windows\Controls\TextAdaptor.cs (2)
331_textPeer.RaiseAutomationEvent(AutomationEvents.TextPatternOnTextChanged); 339_textPeer.RaiseAutomationEvent(AutomationEvents.TextPatternOnTextSelectionChanged);
System\Windows\Controls\ToolTip.cs (4)
180if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipClosed)) 184peer.RaiseAutomationEvent(AutomationEvents.ToolTipClosed); 556if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipOpened)) 564peer.RaiseAutomationEvent(AutomationEvents.ToolTipOpened);
System\Windows\Controls\TreeView.cs (4)
252&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) ) 256peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 260&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) ) 264peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
System\Windows\Documents\Hyperlink.cs (2)
685if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 689peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (1)
118internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
Microsoft\Windows\Automation\Peers\RibbonSplitButtonAutomationPeer.cs (1)
137RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
165dataPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 167dataPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
115peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 153peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
403if (!IsCheckable && AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
729if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 730|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))