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)
36/// and <seealso cref="FromElement"/>. The type of the peer is determined by the 422AutomationPeer peer = UIElementAutomationPeer.FromElement(element); 457AutomationPeer peer = UIElementAutomationPeer.FromElement(element);
PresentationFramework (46)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (7)
87ListViewAutomationPeer lvAP = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 94ListViewAutomationPeer peer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 133ListViewAutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 223AutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview); 226AutomationPeer peer = UIElementAutomationPeer.FromElement(lvi); 256ListViewAutomationPeer peer = UIElementAutomationPeer.FromElement(_listview) as ListViewAutomationPeer; 263AutomationPeer lvPeer = UIElementAutomationPeer.FromElement(_listview);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
108AutomationPeer peer = UIElementAutomationPeer.FromElement(header);
System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (1)
46IExpandCollapseProvider iecp = (IExpandCollapseProvider)UIElementAutomationPeer.FromElement(parent) as ComboBoxAutomationPeer;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
177AutomationPeer peer = UIElementAutomationPeer.FromElement(uiElement);
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
73ScrollViewerAutomationPeer svAP = UIElementAutomationPeer.FromElement(sv) as ScrollViewerAutomationPeer;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
157AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainer);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
370AutomationPeer peer = UIElementAutomationPeer.FromElement(parent);
System\Windows\Controls\Calendar.cs (1)
1048CalendarAutomationPeer peer = FrameworkElementAutomationPeer.FromElement(this) as CalendarAutomationPeer;
System\Windows\Controls\ComboBox.cs (2)
214ComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(comboBox) as ComboBoxAutomationPeer; 609ComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(cb) as ComboBoxAutomationPeer;
System\Windows\Controls\DataGrid.cs (6)
2442DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 2466DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 3102DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 4283DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 4533DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(this) as DataGridAutomationPeer; 6843DataGridAutomationPeer peer = DataGridAutomationPeer.FromElement(column.DataGridOwner) as DataGridAutomationPeer;
System\Windows\Controls\DataGridRow.cs (1)
1066DataGridAutomationPeer gridPeer = UIElementAutomationPeer.FromElement(grid) as DataGridAutomationPeer;
System\Windows\Controls\DatePicker.cs (1)
478DatePickerAutomationPeer peer = UIElementAutomationPeer.FromElement(dp) as DatePickerAutomationPeer;
System\Windows\Controls\Expander.cs (1)
131ExpanderAutomationPeer peer = UIElementAutomationPeer.FromElement(ep) as ExpanderAutomationPeer;
System\Windows\Controls\FlowDocumentReader.cs (3)
1057FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as FlowDocumentReaderAutomationPeer; 1620FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(viewer) as FlowDocumentReaderAutomationPeer; 1658FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.FromElement(viewer) as FlowDocumentReaderAutomationPeer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1258FlowDocumentScrollViewerAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as FlowDocumentScrollViewerAutomationPeer;
System\Windows\Controls\ListView.cs (2)
107ListViewAutomationPeer lvPeer = UIElementAutomationPeer.FromElement(listView) as ListViewAutomationPeer; 199ListViewAutomationPeer lvPeer = UIElementAutomationPeer.FromElement(this) as ListViewAutomationPeer;
System\Windows\Controls\MenuItem.cs (2)
597MenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as MenuItemAutomationPeer; 958MenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as MenuItemAutomationPeer;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1389DocumentViewerBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as DocumentViewerBaseAutomationPeer;
System\Windows\Controls\Primitives\RangeBase.cs (3)
92RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer; 153RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer; 223RangeBaseAutomationPeer peer = UIElementAutomationPeer.FromElement(ctrl) as RangeBaseAutomationPeer;
System\Windows\Controls\Primitives\Selector.cs (1)
992SelectorAutomationPeer selectorPeer = UIElementAutomationPeer.FromElement(this) as SelectorAutomationPeer;
System\Windows\Controls\Primitives\ToggleButton.cs (1)
161ToggleButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(button) as ToggleButtonAutomationPeer;
System\Windows\Controls\ProgressBar.cs (1)
102ProgressBarAutomationPeer 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)
1047TextBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as TextBoxAutomationPeer;
System\Windows\Controls\TreeViewItem.cs (2)
111TreeViewItemAutomationPeer peer = UIElementAutomationPeer.FromElement(item) as TreeViewItemAutomationPeer; 156TreeViewItemAutomationPeer peer = UIElementAutomationPeer.FromElement(item) as TreeViewItemAutomationPeer;
System\Windows\Navigation\NavigationService.cs (1)
2312AutomationPeer peer = UIElementAutomationPeer.FromElement(navigatorHost) as AutomationPeer;
System\Windows\Window.cs (1)
4819AutomationPeer peer = UIElementAutomationPeer.FromElement(this);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
169AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainers[index]);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1327RibbonAutomationPeer peer = UIElementAutomationPeer.FromElement(ribbon) as RibbonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
122RibbonComboBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(cb) as RibbonComboBoxAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
633RibbonGroupAutomationPeer peer = UIElementAutomationPeer.FromElement(group) as RibbonGroupAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1125RibbonMenuButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as RibbonMenuButtonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
1238RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement((RibbonMenuItem)d) as RibbonMenuItemAutomationPeer; 1292RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.FromElement(menuItem) as RibbonMenuItemAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
188RibbonQuickAccessToolBarAutomationPeer peer = UIElementAutomationPeer.FromElement(qat) as RibbonQuickAccessToolBarAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
399RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as RibbonSplitButtonAutomationPeer; 409RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(splitButton) as RibbonSplitButtonAutomationPeer;