114 references to AutomationEvents
PresentationCore (34)
Core\CSharp\MS\Internal\Automation\EventMap.cs (22)
100private static AutomationEvent GetRegisteredEventObjectHelper(AutomationEvents eventId) 106case AutomationEvents.ToolTipOpened: eventObject = AutomationElementIdentifiers.ToolTipOpenedEvent; break; 107case AutomationEvents.ToolTipClosed: eventObject = AutomationElementIdentifiers.ToolTipClosedEvent; break; 108case AutomationEvents.MenuOpened: eventObject = AutomationElementIdentifiers.MenuOpenedEvent; break; 109case AutomationEvents.MenuClosed: eventObject = AutomationElementIdentifiers.MenuClosedEvent; break; 110case AutomationEvents.AutomationFocusChanged: eventObject = AutomationElementIdentifiers.AutomationFocusChangedEvent; break; 111case AutomationEvents.InvokePatternOnInvoked: eventObject = InvokePatternIdentifiers.InvokedEvent; break; 112case AutomationEvents.SelectionItemPatternOnElementAddedToSelection: eventObject = SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent; break; 113case AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection: eventObject = SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent; break; 114case AutomationEvents.SelectionItemPatternOnElementSelected: eventObject = SelectionItemPatternIdentifiers.ElementSelectedEvent; break; 115case AutomationEvents.SelectionPatternOnInvalidated: eventObject = SelectionPatternIdentifiers.InvalidatedEvent; break; 116case AutomationEvents.TextPatternOnTextSelectionChanged: eventObject = TextPatternIdentifiers.TextSelectionChangedEvent; break; 117case AutomationEvents.TextPatternOnTextChanged: eventObject = TextPatternIdentifiers.TextChangedEvent; break; 118case AutomationEvents.AsyncContentLoaded: eventObject = AutomationElementIdentifiers.AsyncContentLoadedEvent; break; 119case AutomationEvents.PropertyChanged: eventObject = AutomationElementIdentifiers.AutomationPropertyChangedEvent; break; 120case AutomationEvents.StructureChanged: eventObject = AutomationElementIdentifiers.StructureChangedEvent; break; 121case AutomationEvents.InputReachedTarget: eventObject = SynchronizedInputPatternIdentifiers.InputReachedTargetEvent; break; 122case AutomationEvents.InputReachedOtherElement: eventObject = SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent; break; 123case AutomationEvents.InputDiscarded: eventObject = SynchronizedInputPatternIdentifiers.InputDiscardedEvent; break; 124case AutomationEvents.LiveRegionChanged: eventObject = AutomationElementIdentifiers.LiveRegionChangedEvent; break; 203internal static bool HasRegisteredEvent(AutomationEvents eventId) 215internal static AutomationEvent GetRegisteredEvent(AutomationEvents eventId)
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (3)
325peer.RaiseAutomationEvent(AutomationEvents.InputReachedTarget); 328peer.RaiseAutomationEvent(AutomationEvents.InputDiscarded); 331peer.RaiseAutomationEvent(AutomationEvents.InputReachedOtherElement);
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (9)
328static public bool ListenerExists(AutomationEvents eventId) 338public void RaiseAutomationEvent(AutomationEvents eventId) 384if (EventMap.HasRegisteredEvent(AutomationEvents.AsyncContentLoaded)) 400if (EventMap.HasRegisteredEvent(AutomationEvents.AutomationFocusChanged)) 406peer.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged); 1794&& EventMap.HasRegisteredEvent(AutomationEvents.PropertyChanged) ) 1815if (!EventMap.HasRegisteredEvent(AutomationEvents.StructureChanged)) 1957bool notifyPropertyChanged = EventMap.HasRegisteredEvent(AutomationEvents.PropertyChanged); 1958bool notifyStructureChanged = EventMap.HasRegisteredEvent(AutomationEvents.StructureChanged);
PresentationFramework (76)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (6)
308if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1) 313peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 318if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 325peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 331if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 338peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (14)
332if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 338cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 344if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 351cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 356if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 363cellPeer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection); 377dataGridItemAutomationPeer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 391cellPeer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked); 405if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 411peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 417if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 424peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 429if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 436peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (5)
144this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 161peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 170this.RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated); 182peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementAddedToSelection); 192peer.RaiseAutomationEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
417internal void RaiseAutomationSelectionEvent(AutomationEvents eventId)
src\Framework\System\Windows\Controls\Button.cs (2)
256if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 260peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\Calendar.cs (3)
1052if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 1053AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 1054AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))
src\Framework\System\Windows\Controls\ComboBox.cs (4)
580if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 581|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 582|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 583|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\DataGrid.cs (10)
2457if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 2484if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 3129if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 4314if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4315AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4316AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 4567if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4568AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4569AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 6888if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
846if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 850peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\ListBox.cs (4)
296if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 297|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 298|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 299|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\MenuItem.cs (2)
1396if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 1400peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
764if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 769peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (3)
310AutomationEvents automationEvent = open ? AutomationEvents.MenuOpened : AutomationEvents.MenuClosed;
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (2)
208if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 212peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
src\Framework\System\Windows\Controls\TabControl.cs (4)
381if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 382|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 383|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 384|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
310_textPeer.RaiseAutomationEvent(AutomationEvents.TextPatternOnTextChanged); 318_textPeer.RaiseAutomationEvent(AutomationEvents.TextPatternOnTextSelectionChanged);
src\Framework\System\Windows\Controls\ToolTip.cs (4)
190if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipClosed)) 194peer.RaiseAutomationEvent(AutomationEvents.ToolTipClosed); 549if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipOpened)) 557peer.RaiseAutomationEvent(AutomationEvents.ToolTipOpened);
src\Framework\System\Windows\Controls\TreeView.cs (4)
253&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) ) 257peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementSelected); 261&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) ) 265peer.RaiseAutomationSelectionEvent(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection);
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
720if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 724peer.RaiseAutomationEvent(AutomationEvents.InvokePatternOnInvoked);
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (2)
280_itemAutomationPeer.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged); 556this.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyContainerAutomationPeer.cs (1)
146this.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (1)
128this.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged);