60 references to FromElement
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
57var peer = FrameworkElementAutomationPeer.FromElement(textBlock);
PresentationCore (3)
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
46/// and <seealso cref="FromElement"/>. The type of the peer is determined by the 432AutomationPeer peer = UIElementAutomationPeer.FromElement(element); 467AutomationPeer peer = UIElementAutomationPeer.FromElement(element);
PresentationFramework (46)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (7)
100ListViewAutomationPeer lvAP = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 107ListViewAutomationPeer peer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 146ListViewAutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 239AutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview); 242AutomationPeer peer = UIElementAutomationPeer.FromElement(lvi); 272ListViewAutomationPeer peer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 282AutomationPeer lvPeer = UIElementAutomationPeer.FromElement(_listview);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
120AutomationPeer peer = UIElementAutomationPeer.FromElement(header);
System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (1)
60IExpandCollapseProvider iecp = (IExpandCollapseProvider)UIElementAutomationPeer.FromElement(parent) as ComboBoxAutomationPeer;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
191AutomationPeer peer = UIElementAutomationPeer.FromElement(uiElement);
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
80ScrollViewerAutomationPeer svAP = UIElementAutomationPeer.FromElement(sv) as ScrollViewerAutomationPeer;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
171AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainer);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
386AutomationPeer peer = UIElementAutomationPeer.FromElement(parent);
System\Windows\Controls\Calendar.cs (1)
1055CalendarAutomationPeer peer = FrameworkElementAutomationPeer.FromElement(this) as CalendarAutomationPeer;
System\Windows\Controls\ComboBox.cs (2)
225ComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(comboBox) as ComboBoxAutomationPeer; 627ComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(cb) as ComboBoxAutomationPeer;
System\Windows\Controls\DataGrid.cs (6)
2454DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 2481DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 3126DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 4313DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 4566DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 6888DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(column.DataGridOwner) as DataGridAutomationPeer;
System\Windows\Controls\DataGridRow.cs (1)
1093DataGridAutomationPeer gridPeer = UIElementAutomationPeer.FromElement(grid) as DataGridAutomationPeer;
System\Windows\Controls\DatePicker.cs (1)
483DatePickerAutomationPeer peer = UIElementAutomationPeer.FromElement(dp) as DatePickerAutomationPeer;
System\Windows\Controls\Expander.cs (1)
136ExpanderAutomationPeer peer = UIElementAutomationPeer.FromElement(ep) as ExpanderAutomationPeer;
System\Windows\Controls\FlowDocumentReader.cs (3)
1072FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as FlowDocumentReaderAutomationPeer; 1652FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(viewer) as FlowDocumentReaderAutomationPeer; 1693FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(viewer) as FlowDocumentReaderAutomationPeer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1270FlowDocumentScrollViewerAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as FlowDocumentScrollViewerAutomationPeer;
System\Windows\Controls\ListView.cs (2)
108ListViewAutomationPeer lvPeer = UIElementAutomationPeer.FromElement(listView) as ListViewAutomationPeer; 203ListViewAutomationPeer lvPeer = UIElementAutomationPeer.FromElement(this) as ListViewAutomationPeer;
System\Windows\Controls\MenuItem.cs (2)
608MenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as MenuItemAutomationPeer; 969MenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as MenuItemAutomationPeer;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1420DocumentViewerBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as DocumentViewerBaseAutomationPeer;
System\Windows\Controls\Primitives\RangeBase.cs (3)
105RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer; 169RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer; 242RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer;
System\Windows\Controls\Primitives\Selector.cs (1)
1004SelectorAutomationPeer selectorPeer = UIElementAutomationPeer.FromElement(this) as SelectorAutomationPeer;
System\Windows\Controls\Primitives\ToggleButton.cs (1)
174ToggleButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(button) as ToggleButtonAutomationPeer;
System\Windows\Controls\ProgressBar.cs (1)
110ProgressBarAutomationPeer peer = UIElementAutomationPeer.FromElement(progressBar) as ProgressBarAutomationPeer;
System\Windows\Controls\ScrollViewer.cs (1)
2422ScrollViewerAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as ScrollViewerAutomationPeer;
System\Windows\Controls\TextBox.cs (1)
1053TextBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as TextBoxAutomationPeer;
System\Windows\Controls\TreeViewItem.cs (2)
116TreeViewItemAutomationPeer peer = UIElementAutomationPeer.FromElement(item) as TreeViewItemAutomationPeer; 164TreeViewItemAutomationPeer peer = UIElementAutomationPeer.FromElement(item) as TreeViewItemAutomationPeer;
System\Windows\Navigation\NavigationService.cs (1)
2375AutomationPeer peer = UIElementAutomationPeer.FromElement(navigatorHost) as AutomationPeer;
System\Windows\Window.cs (1)
4852AutomationPeer peer = UIElementAutomationPeer.FromElement(this);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
173AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainers[index]);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1343RibbonAutomationPeer peer = UIElementAutomationPeer.FromElement(ribbon) as RibbonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
125RibbonComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(cb) as RibbonComboBoxAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
640RibbonGroupAutomationPeer peer = UIElementAutomationPeer.FromElement(group) as RibbonGroupAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1132RibbonMenuButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as RibbonMenuButtonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
1248RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement((RibbonMenuItem)d) as RibbonMenuItemAutomationPeer; 1305RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as RibbonMenuItemAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
194RibbonQuickAccessToolBarAutomationPeer peer = UIElementAutomationPeer.FromElement(qat) as RibbonQuickAccessToolBarAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
405RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as RibbonSplitButtonAutomationPeer; 418RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(splitButton) as RibbonSplitButtonAutomationPeer;