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)
37/// and <seealso cref="FromElement"/>. The type of the peer is determined by the 423AutomationPeer peer = UIElementAutomationPeer.FromElement(element); 458AutomationPeer peer = UIElementAutomationPeer.FromElement(element);
PresentationFramework (46)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (7)
88ListViewAutomationPeer lvAP = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 95ListViewAutomationPeer peer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 134ListViewAutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 227AutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview); 230AutomationPeer peer = UIElementAutomationPeer.FromElement(lvi); 260ListViewAutomationPeer peer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 270AutomationPeer lvPeer = UIElementAutomationPeer.FromElement(_listview);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
109AutomationPeer peer = UIElementAutomationPeer.FromElement(header);
System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (1)
47IExpandCollapseProvider iecp = (IExpandCollapseProvider)UIElementAutomationPeer.FromElement(parent) as ComboBoxAutomationPeer;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
178AutomationPeer peer = UIElementAutomationPeer.FromElement(uiElement);
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
74ScrollViewerAutomationPeer svAP = UIElementAutomationPeer.FromElement(sv) as ScrollViewerAutomationPeer;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
158AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainer);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
374AutomationPeer peer = UIElementAutomationPeer.FromElement(parent);
System\Windows\Controls\Calendar.cs (1)
1051CalendarAutomationPeer peer = FrameworkElementAutomationPeer.FromElement(this) as CalendarAutomationPeer;
System\Windows\Controls\ComboBox.cs (2)
215ComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(comboBox) as ComboBoxAutomationPeer; 617ComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(cb) as ComboBoxAutomationPeer;
System\Windows\Controls\DataGrid.cs (6)
2451DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 2478DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 3123DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 4310DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 4563DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 6885DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(column.DataGridOwner) as DataGridAutomationPeer;
System\Windows\Controls\DataGridRow.cs (1)
1089DataGridAutomationPeer gridPeer = UIElementAutomationPeer.FromElement(grid) as DataGridAutomationPeer;
System\Windows\Controls\DatePicker.cs (1)
479DatePickerAutomationPeer peer = UIElementAutomationPeer.FromElement(dp) as DatePickerAutomationPeer;
System\Windows\Controls\Expander.cs (1)
132ExpanderAutomationPeer peer = UIElementAutomationPeer.FromElement(ep) as ExpanderAutomationPeer;
System\Windows\Controls\FlowDocumentReader.cs (3)
1067FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as FlowDocumentReaderAutomationPeer; 1647FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(viewer) as FlowDocumentReaderAutomationPeer; 1688FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(viewer) as FlowDocumentReaderAutomationPeer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1267FlowDocumentScrollViewerAutomationPeer 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)
598MenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as MenuItemAutomationPeer; 959MenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as MenuItemAutomationPeer;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1415DocumentViewerBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as DocumentViewerBaseAutomationPeer;
System\Windows\Controls\Primitives\RangeBase.cs (3)
93RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer; 157RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer; 230RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer;
System\Windows\Controls\Primitives\Selector.cs (1)
995SelectorAutomationPeer selectorPeer = UIElementAutomationPeer.FromElement(this) as SelectorAutomationPeer;
System\Windows\Controls\Primitives\ToggleButton.cs (1)
165ToggleButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(button) as ToggleButtonAutomationPeer;
System\Windows\Controls\ProgressBar.cs (1)
103ProgressBarAutomationPeer peer = UIElementAutomationPeer.FromElement(progressBar) as ProgressBarAutomationPeer;
System\Windows\Controls\ScrollViewer.cs (1)
2414ScrollViewerAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as ScrollViewerAutomationPeer;
System\Windows\Controls\TextBox.cs (1)
1046TextBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as TextBoxAutomationPeer;
System\Windows\Controls\TreeViewItem.cs (2)
112TreeViewItemAutomationPeer peer = UIElementAutomationPeer.FromElement(item) as TreeViewItemAutomationPeer; 160TreeViewItemAutomationPeer peer = UIElementAutomationPeer.FromElement(item) as TreeViewItemAutomationPeer;
System\Windows\Navigation\NavigationService.cs (1)
2366AutomationPeer peer = UIElementAutomationPeer.FromElement(navigatorHost) as AutomationPeer;
System\Windows\Window.cs (1)
4839AutomationPeer peer = UIElementAutomationPeer.FromElement(this);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
170AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainers[index]);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1340RibbonAutomationPeer peer = UIElementAutomationPeer.FromElement(ribbon) as RibbonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
123RibbonComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(cb) as RibbonComboBoxAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
637RibbonGroupAutomationPeer peer = UIElementAutomationPeer.FromElement(group) as RibbonGroupAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1129RibbonMenuButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as RibbonMenuButtonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
1245RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement((RibbonMenuItem)d) as RibbonMenuItemAutomationPeer; 1302RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as RibbonMenuItemAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
189RibbonQuickAccessToolBarAutomationPeer peer = UIElementAutomationPeer.FromElement(qat) as RibbonQuickAccessToolBarAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
403RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as RibbonSplitButtonAutomationPeer; 416RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(splitButton) as RibbonSplitButtonAutomationPeer;