60 references to FromElement
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
57
var 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
423
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(element);
458
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(element);
PresentationFramework (46)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (7)
88
ListViewAutomationPeer lvAP = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
95
ListViewAutomationPeer peer = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
134
ListViewAutomationPeer lvpeer = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
227
AutomationPeer lvpeer = UIElementAutomationPeer.
FromElement
(_listview);
230
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(lvi);
260
ListViewAutomationPeer peer = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
270
AutomationPeer lvPeer = UIElementAutomationPeer.
FromElement
(_listview);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
109
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(header);
System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (1)
47
IExpandCollapseProvider iecp = (IExpandCollapseProvider)UIElementAutomationPeer.
FromElement
(parent) as ComboBoxAutomationPeer;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
178
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(uiElement);
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
74
ScrollViewerAutomationPeer svAP = UIElementAutomationPeer.
FromElement
(sv) as ScrollViewerAutomationPeer;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
158
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(selectedContainer);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
374
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(parent);
System\Windows\Controls\Calendar.cs (1)
1049
CalendarAutomationPeer peer = FrameworkElementAutomationPeer.
FromElement
(this) as CalendarAutomationPeer;
System\Windows\Controls\ComboBox.cs (2)
215
ComboBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(comboBox) as ComboBoxAutomationPeer;
617
ComboBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(cb) as ComboBoxAutomationPeer;
System\Windows\Controls\DataGrid.cs (6)
2455
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
2482
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
3127
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
4314
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
4567
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
6889
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(column.DataGridOwner) as DataGridAutomationPeer;
System\Windows\Controls\DataGridRow.cs (1)
1088
DataGridAutomationPeer gridPeer = UIElementAutomationPeer.
FromElement
(grid) as DataGridAutomationPeer;
System\Windows\Controls\DatePicker.cs (1)
479
DatePickerAutomationPeer peer = UIElementAutomationPeer.
FromElement
(dp) as DatePickerAutomationPeer;
System\Windows\Controls\Expander.cs (1)
132
ExpanderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ep) as ExpanderAutomationPeer;
System\Windows\Controls\FlowDocumentReader.cs (3)
1067
FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as FlowDocumentReaderAutomationPeer;
1648
FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(viewer) as FlowDocumentReaderAutomationPeer;
1689
FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(viewer) as FlowDocumentReaderAutomationPeer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1271
FlowDocumentScrollViewerAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as FlowDocumentScrollViewerAutomationPeer;
System\Windows\Controls\ListView.cs (2)
108
ListViewAutomationPeer lvPeer = UIElementAutomationPeer.
FromElement
(listView) as ListViewAutomationPeer;
203
ListViewAutomationPeer lvPeer = UIElementAutomationPeer.
FromElement
(this) as ListViewAutomationPeer;
System\Windows\Controls\MenuItem.cs (2)
598
MenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(menuItem) as MenuItemAutomationPeer;
959
MenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(menuItem) as MenuItemAutomationPeer;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1405
DocumentViewerBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as DocumentViewerBaseAutomationPeer;
System\Windows\Controls\Primitives\RangeBase.cs (3)
93
RangeBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ctrl) as RangeBaseAutomationPeer;
157
RangeBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ctrl) as RangeBaseAutomationPeer;
230
RangeBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ctrl) as RangeBaseAutomationPeer;
System\Windows\Controls\Primitives\Selector.cs (1)
993
SelectorAutomationPeer selectorPeer = UIElementAutomationPeer.
FromElement
(this) as SelectorAutomationPeer;
System\Windows\Controls\Primitives\ToggleButton.cs (1)
162
ToggleButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(button) as ToggleButtonAutomationPeer;
System\Windows\Controls\ProgressBar.cs (1)
103
ProgressBarAutomationPeer peer = UIElementAutomationPeer.
FromElement
(progressBar) as ProgressBarAutomationPeer;
System\Windows\Controls\ScrollViewer.cs (1)
2418
ScrollViewerAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as ScrollViewerAutomationPeer;
System\Windows\Controls\TextBox.cs (1)
1048
TextBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as TextBoxAutomationPeer;
System\Windows\Controls\TreeViewItem.cs (2)
112
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(item) as TreeViewItemAutomationPeer;
160
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(item) as TreeViewItemAutomationPeer;
System\Windows\Navigation\NavigationService.cs (1)
2349
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(navigatorHost) as AutomationPeer;
System\Windows\Window.cs (1)
4833
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(this);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
170
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(selectedContainers[index]);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1340
RibbonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ribbon) as RibbonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
123
RibbonComboBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(cb) as RibbonComboBoxAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
637
RibbonGroupAutomationPeer peer = UIElementAutomationPeer.
FromElement
(group) as RibbonGroupAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1129
RibbonMenuButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as RibbonMenuButtonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
1245
RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
((RibbonMenuItem)d) as RibbonMenuItemAutomationPeer;
1302
RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(menuItem) as RibbonMenuItemAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
189
RibbonQuickAccessToolBarAutomationPeer peer = UIElementAutomationPeer.
FromElement
(qat) as RibbonQuickAccessToolBarAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
403
RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as RibbonSplitButtonAutomationPeer;
416
RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(splitButton) as RibbonSplitButtonAutomationPeer;